Linux Sysadmin Basics 02 — Basic Commands

Video is ready, Click Here to View ×

This video covers the ABSOLUTE BASICS of the Linux command-line. You’ll learn the basic commands for moving around the filesystem and doing basic tasks in the Linux shell (command-line). We cover:

pwd — How to see which directory you’re in.
ls — How to list stuff in a Linux directory.
cd — How to change directory in Linux.
mv — How to move and rename files in Linux.
rm — How to remove files and directories in Linux.
rmdir — How to delete directories in Linux.
touch — How to create an…


  1. I created a .txt on my desktop, created a directory on my desktop, moved the file into the directory, and when I double clicked on the desktop folder, it would not open. Any ideas? By the way, thank you for sharing your knowledge, I am a new user and am this far in your series and looking forward to finishing your class soon!

  2. I had no idea tab completion existed in linux. With my ocd forcing me to name files with things like "io_and_logical_operators_test" you just saved me a ton of time and annoyance. +Liked this video for that alone.

  3. Thanks for the videos. I'm just a general HT PC user but ever since ditching windows for linux I've been curious about the terminal & Linux in general. We'll see how far I get with your tutorials. So far so good.

  4. Basic Commands (Moving Around CLI, Creating Files, Deleting Files, Deleting Directories, Creating Directories)

    ls | lists the files that are in a directory
    ls –a | shows all files in a directory
    ls / | shows the contents of the root directory
    pwd | Prints the name of the directory you on in
    clear | clears the screen
    cd / | Changes directory to root
    cd ~ | changes to home directory
    touch <file name. extension> | Makes a file in current directory
    cat <file name. extension> | prints the contents of a file on the screen
    mkdir <Directory Name> | Makes a directory
    mv <file name> <directory name> | Moves a file to a directory
    rm <file name> | removes a file
    rmdir <directory name> | removes an empty directory
    man <command> | Displays how a command can be used
    rm –r | Removed a directory and its contents
    rm –rf / | Deletes everything under root (kills the system)

  5. too many fiddling with the keyboard noises!

    you have to get a microphone thats not near the keyboard OMGGGG
    its not a typing contest! typing 2 letters like have to do that in the speed of light…it's only 2 letters, you can take a WHOLE half a sec to type that…doesn't have to be 0.0001 secs.
    and enter BAM! SLAM THAT ENTER key

  6. Day 1 with your tutorial… and I'm all giddy creating and moving text files with the terminal. I've been wanting to learn linux for so long. Thank you for making these videos.

  7. Thanks so much first off. As a guy starting from the beginning, just need to know how to even create a text file so then i can learn how to mkdir it. If that makes sense.

  8. There are too many beginners tutorials out there that just focus on showing you how to a do a task without giving you any real context and don't teach you how to navigate. Your tutorials on the other hand are just awesome and are finally giving me something that I feel is giving me general control over the terminal.

    Thank so much!

  9. Actually, the "myawesomefile.txt~" is created by "gedit" when you save.

    If the file you're saving to already exists, then that file is renamed with a "~" at the end. It's a very simple backup system that keeps around the last save. So if you made some catastrophic mistake and saved it, then the "~" file will be what it used to be at the last save (it's basically the old file renamed). If you save twice, though, then it's gone. This simple backup system is only retaining the last save. You can only "undo" once. But it's a sometimes useful facility that has saved my arse once or twice (and you can turn it off in the gedit options anyway, if it really annoys you).

Leave a Reply

Your email address will not be published.