Conquer Command Line

In windows, drives are separated like C: and D: but in linux based system, the file system is not separated in multiple drives

Linux follows Unified file system where there is only 1 root directory

/

in windows we use \ for referring to location but in linux the notation is / to separate directories

/ this is root directory path

~ this is our home directory path

pwd print working directory this will print the present working directory

Ctrl+Shift+n this will open a new terminal with pwd

Ctrl+Alt+d this will minimize all windows except the current open windows

cd change directory command without any arguments, it navigates to home directory

cd <directory_path_to_navigate> cd with path as argument navigates to that particular directory this command takes one path as argument and navigates to that directory

cd ~ will again navigate to home directory

cd .. this will take you to one directory path up remember there is space after cd command depicting that cd is independant command and .. is the argument supplied to denote root directory in windows, cd.. is a single command to go up the directory path

cd - this will navigate to last checked out directory

mkdir a this command is used to create directory with name a

mkdir -p a/b/c mkdir along with -p flag will create nested directory structure with mentioned path

ctrl + r this allows us for recursive search if commands within command history

history this command gives us the history of all commands that are executed

grep this command is used for searching a string inside the pwd

nautilus . command to open the current pwd in explorer

Last updated