used to check for description and arguments for the command
man ls
list directories and files contents
ls
use a long listing format
ls -l
date
VI is an editor to edit the file content.
vi a.txt
You need to make sure you have a.txt file. If you haven’t, you need to create it first.
You only need to execute command first time.
touch a.txt
When you use vi
to open/edit the file, you enter the normal mode.
Press down esc
in any mode (on the left upper conner, one key) command to go back to the Normal Mode.
If you want to edit the file, you need to use the Insert Mode.
Use i
to enter the Insert Mode.
If you want to use some command, you need to use in this mode.
use :
to go the command-line mode.
quit the vi :q
write and quit :wq
quit without save :q!
(If you edit anything after you use insert mode, you don’t want to save it)
If you edit anything in the
vi
, and use the:q
, the vi command will give you a warning.
References:
abbr: ReMove
used to remove the file or directory
rm THE_FILE_YOU_WANT_TO_REMOVE
Example:
touch a.txt
rm a.txt
Print Working Directory
Change Directory
cd Desktop
Use
ls
to check what directory you have first.
wget https://upload.wikimedia.org/wikipedia/commons/8/80/Cowsay_Typical_Output.png
passwd THE_USERNAME_WE_WANT_TO_EDIT_THE_PASSWORD
passwd root
Welcome to join AIClub
is the content you want to let the cow say.
cowsay Welcome to join AIClub