To become a Linux Wizard you must conquer Command Line Interface,
Part 1
Watch Video
Start with, what is a CLI?
- It is a user interface, which doesn't have pretty graphics.
- We'll use the commands to mess around.
Let's say if you want to open a folder on your PC, we'll be using commands for that, don't freak out, its easy than it seems just bear with me,
By the way, CLI uses BASH as a programming language.
CLI
- here, haris is PC admin name
- cosmos is name of my PC
- ~ is representing Home directory
- $ means we're in the system shell, and ready to type commands
Understand Directories and their Path
- All folders are like Tree Hierarchy, starting from Root Directory,
Basic Commands
-
pwdpresent working directory -
lscheck the content of the directory -
cdchange directory -
cd..change directory to previous directory -
cd../..change directory to previous two times -
cd~change directory to Home Directory - flags are arguments/options
-
ls -ato list all the hidden files -
ls -lshow detailed versions of files -
ls -lashow detailed version of all hidden files -
clearclear the terminal (ctrl+l) -
.current directory -
..parent Directory -
~home Directory -
-previous Directory -
mkdirmake a directory -
touchCreate a new file -
filegive info about file -
geditedit file -
catview content of a file, concatenate files -
historydisplays history of commands that were executed -
uparrowdisplay previous commands -
ctrl + rreverse search -
ctrl + cexit -
Autocomplete - type first letter of the directory then press
tab -
cpcopy files -
mvmove files -
rmremove files -
mkdir -pmake a directory in the subdirectory -
rm -rremove recursively -
rm -rvremove recursively and display removed directory -
find ~ -namefind a file in home directory

or find it only with file type or only with file name
-
find ~ -type d -namefind folder -
manfind the manual of any command -
whatistells about command
Now you are ready to become a Linux Wizard,
See you in Part 2




Top comments (1)
I dunno I'm not quite ready to equate Linux wizard with command line wizard (but Unix wizard, maybe). I'd like to think there's some level of Thunar-foo (or other GUI file manager) at which I can match wits with the cleverest bashers, at least on filesystem tasks. Dragging and dropping can be a sublime art, you know. Certainly when my task is to "merge" two directories I find the GUI file manager far more useful than bash, although I suppose that may be a symptom of a bash-fu deficit on my part.