Master the command line with this 40 terminal commands
Photo by Gabriel Heinzer on Unsplash
This post will be a bit different from the others because we are going to list 40 terminal commands to be more effective when working with a Unix based operating system.
man: with this command you can open the manual page to see documentation associated to a particular command.
whoami: display effective user id.
clear: To clear the previous commands executed in your terminal.
pwd: print working directory, that tells our current location, current directory.
ls: list the contents of a directory.
cd: change directory. It doesn’t have a man page.
mv: move file, directory from one location to another.
cp: copy file/directory.
touch: this command is useful to create an empty file.
rm: this one is to delete a file.
rmdir: to remove a directory that has to be empty.
open: to open a directory.
less: read the content of a file.
wc: word count utility.
sort : sort content of a file it can be alphabetically or with numbers.
zip: compress a file or a list of files.
diff: see the diffencies between two files.
find: can be used to find files or folders matching a particular search pattern.
grep: you can use it to search inside the files.
du: disk usage statistics.
df: allows to see the disk free.
history: you can display all the history of commands that have been executed.
ps: helps inspecting all the processes running in your computer.
top: display sorted information about processes.
kill: The kill program can send signals to a program. It’s not only used to terminate a program.
gzip: you can compress a file.
nano : a beginner friendly editor.
alias: It’s common to run a program with a set of options you like using.
xargs: is used to convert input from standard input into arguments to a command.
ln: this command can be used to create links. It can be a soft link or a hard link.
who: the command displays the users logged in to the system.
su: useful to switch to another user.
sudo: to run a command as root.
passwd: you can change the password of a user using this command.
chown: you can change the owner of a file or directory with this command.
chmod: this command is used to change permisions of a file/directory.
tar: manipulate tape archives. Can extract and create different kinds of archives.
tail: display last lines of a file.
head: display first lines of a file.
date: display or set date and time.
Any command that you find useful that is not in this list? let me know in the comments below.