The most popular Linux “distros” include:
Ubuntu (my personal favorite) Red Hat Enterprise Linux Mint Debian Fedora Arch
And the list goes on and on.
Why Learn Linux Commands?
Bash skills are popular and pay handsomely.
Linux Commands
Before we begin, just remember two things:
whoami
Note: “id -un” can be used instead of “whoami” to get the username.
man
clear
Note: You can use “Ctrl+l” as a shortcut to “clear +x” command.
pwd
ls
cd
mkdir
touch
rmdir
rm
open
mv
cp
Note: Add the ‘-r’ option to recursively copy the whole content of the directory
head
tail
date
WARNING: ‘>’ will replace the entire content of the file. So in order to append to a file instead of overwriting it “»” is used.
cat
less
echo
wc
sort
Note: If you want to sort numbers in a file then use “sort -n filename” instead of just sort.
uniq
diff
find
Ex. Let’s find out the files in the current directory having .txt as their file extension. Note: Don’t miss quotes around special characters like ‘ * ’.
grep (I use it quite often)
du
Note: ’ * ’ is used to represent all the files.
df
history
ps
This command lists the user-initiated processes currently running in the current session.
top
kill
Ex. If I want to kill the “blueman-manager” process with PID 36709, then I will simply execute the “kill 36709” or “kill -s TERM 36709" (if you want to specify the type of signal as well) command in the terminal.
killall
Bonus Resources to learn more about Linux
Pipelining of commands (must watch) Linux Directories in 100 sec https://overthewire.org/wargames/bandit/ (for practicing) Hackersploit Linux series (solution to above wargames and much more on Linux)
Bonus
(Youtube Channels I have been following for the past 3 years)
DistroTube (For Linux Distribution related knowledge) David Bombal & NetworkChuck (Linux, networking, hacking….) Learn Linux Tv (Must follow)
This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters. © 2022 Ashutosh Singh Patel