A very important tool any computer nerd should know is the Linux command line. Today we'll be going over simple but affective Linux commands that every computer nerd should be aware of. 😁
Starting with
-
pwd
will print the name of the current/working directory. -
ls
&ls -la
will provide details and list the contents of the current working directory. -
cd
command is used for moving up down directories. -
touch
can be used for creating new empty files. -
cat
will display the contents of a file. This file contains nothing, so let's add some data by using a text editor. -
nano
is a small text editor, that can be used for editing texts of file. PressCtrl+O
to save, thenCtrl+X
to exit We can then usecat
once again to check if the edits were saved. - You can also extract specific information from a file using the
grep
command. - You can use
mkdir
to create a new directory for transferring files. -
mv
can be used for moving files from a directory into another.mv *.txt ~/Desktop
will move all files that end with the .txt extension into the desktop directory. -
cp
can be used for copying files into another directory. - Last but not least, the
rm
, which can be used for removing files from the disk.
Thanks for reading
Kenji
Top comments (0)