Lab 1
Lab 1
o Syntax: ls
Basic Linux Commands (Cont’d)
► cd: used to change the current directory.
o Syntax: cd <directory name>
File commands
►touch: used to create empty files. We can create multiple empty
files by executing it once.
o Syntax: touch <file1> <file2> ....
used to create a file, display content of the file, copy the content
of one file to another file, and more.
► Syntax: cat [option]... [file]…
To create a file
► For example: Press "CTRL+ D" keys to
cat > <file name>
save the file.
// Enter file content
Basic Linux Commands (Cont’d)
To display the content of the file
cat <file name>
►rm : used to remove a file.