essentials
In this section, I will be discussing some basic Linux commands, along with a few basic flags associated with each commands. The term flag refers to the arguments/parameters supplied to the command.
apt, apt-get, file, diff
ls
Lists contents in specified directory. If <dir> value is omitted, the current directory would be used instead
Useful flags
-l
To display content in long listing format
-a, --all
To display all content including those starting with . (hidden files)
Combination of multiple flags
Display all content including hidden files (starting with .), in long listing format
pwd
To print the current working directory
cd
To change directory
Basic example
mkdir
To create a new directory
cat
From manpage: "concatenate files and print on standard output". In simple terms, it displays the content of a particular input file
Useful flags
-n, --number
To display output line numbers
Last updated