15 Commands for the Command Line (Part 1)

preview_player
Показать описание
I hear sometimes that MacOS, FreeBSD and Linux are so different, well from the CLI perspective with the default commands, they are the same, there are some differences in the command arguments but, for the most part they are exactly the same. If you like this kind of video I will include more commands, there are many of them which are the same. WSL is included because for the default install it is essentially Ubuntu.

00:00 - Intro
00:21 - Why Learn the command line?
01:49 - But isn't BSD, MacOS, Linux and WSL different?
02:16 - Terminal
03:06 - Three Standard Files
04:14 - Commands
04:23 - The Test Systems
04:55 - whoami
05:41 - id
09:24 - Differences
10:27 - man
13:12 - clear
14:14 - shell prompt
15:23 - pwd
15:55 - ls
20:05 - cd
23:41 - mkdir
26:03 - rmdir
29:20 - touch
32:32 - mv
35:15 - cp
37:13 - Final Thoughts

Follow me:
Twitter @djware55

#linux #macos #freebsd
Рекомендации по теме
Комментарии
Автор

I spend most of my time either in the terminal or a browser these days. I’m not sure how many noobs will be convinced by your video. However, it is a great review for the rest of us with a few new items to add to my repertoire. I do warn Linux users to check the man pages before using a terminal command in the BSDs. I made the mistake of assuming that they were identical when they weren’t a few times. Great video.

donaldmickunas
Автор

I so enjoy your discussions. Thanks for producing such interesting content

mitchharpur
Автор

There is no man-page for cd but there is a help-file which you can get by typing cd --help, for bash at least.

peterjansen
Автор

Excellent. In my opinion, every Linux user, myself included, would benefit a lot from lectures such as this one.

dezmondwhitney
Автор

It's funny that we live at a point in time that even Powershell supports many of these commands as aliases to existing commands.

HaydenLikeHey
Автор

Helpful, informative video. Thank you.

performa
Автор

Well done DJ! Yes these subjects indeed important for novice and export a like, keep doing these topics, Thanks.

abobader
Автор

This is wonderful. It reminds me of when I started using linux in the mid 90s. The father of a friend in high school was the net ops manager for a local internet company. He got me started. how do you begin learning a linux system? man man

kylestubblefield
Автор

lovely again. great primer/review. do you do any machine learning vids?

agun
Автор

There is not a man-page for intro by default, I don't know if this is an Ubuntu thing or some package which you must install but it does not come with man or any core-component of the system on Arch.

peterjansen
Автор

I thought the Apple kernel was a mach microkernel? Not sure if that is correct, but I guess you are talking about the shell and commands.

justgivemethetruth
Автор

To help me track what I’m learning and doing, please share how you document your own computers tweaks, software, configurations, et cetera.

apolloapostolos
Автор

Hi! Doesn't the X in a directory in the permissions mean it can be traversed-manual on apple says it can be searched?

RealMash
Автор

DJ, I'd be interested in your thoughts on 'the art of Unix programming'

gamezoid
Автор

@DJ

I haven't used the Linux subsystem on windows but I do use Powershell on Windows. A lot of the commands do use aliases that would be familiar with Linux users. I just used the 'mkdir' iinstead of: new-item -...-itemtype 'directory' - to make a new directory

If ppl are using PS they can type in 'get-alias' for a list of the aliases of commands/commandlets
I do think Windows is attempting to use the 'Linux world' commands in order to get more ppl to use Powershell

The commandline (ClI) is fun to use. Especially once one starts to get teh hang of it

cleightthejw
Автор

Nice, loved the aliens images also ... new from the James Webb telescope ?
Does it run linux or some Ada based system ?

jyvben
Автор

Those are ok. I briefly tried FreeBSD/NomadBSD after like 20 years. lspci -> pciconf, lsblk -> 3 commands i don't recall, lsusb -> ?, gdb -> lldb?, make is different, insmod/modprobe -> kldload, then there is some command (sysctl?) to read, set or grep hundreds kernel variables (linux used to have filesystem for that). I usually don't need these commands anymore, but on BSD many things (hardware) do not work.

pavelperina
Автор

I learned something today, never knew how to traverse, all the man page sections, w00t! Cannot tell you how many times I tried looking something up only to be dumped into Programming Manual manpage for something that "should" have been a shell command. Or trying to discover a command that could accomplish in one step, something I was brute-forcing with multiple steps. Man pages are your friend, but don't the sections 👍

carpetbomberz
Автор

This is lovely, but every time I see one of these `cut` always fails to make the list. 😔
So useful with awk and grep. Also, the various things you might do with `init` because each of these tend to handle the restart/shutdown process differently. Nothing quite like being locked out of a machine physically and not being unable to reboot. Or was that on windows? 😅

Crux
Автор

DJ Ware, nice just in time retraction of "we need to get our shit together". Busted. 😜

peterjansen