Lab 2 - Ho Dinh Anh
Lab 2 - Ho Dinh Anh
View the file content: using any command as cat, more,less, tail,…
View the thoca.txt file:
View the /etc/passwd and /etc/group file:
Copy a file/ directory: cp
Copy the thoca.txt file to the linux directory
Copy the windows directory to linux directory:
View the linux directory
Move objects: mv
Move the thoca.txt file in the linux library to the openbsd library
Move the windows directory to penbsd directory
Rename: mv
Rename the windows directory in the openbsd directory to wins:
View the openbsd directory:
Copy the thoca.txt directory in the openbsd directory to the freebsd directory and
rename to baitho.doc
Searching
Search the thoca.txt file:
Search the “Cong cha nhu nui thai son” sentences in the thoca.txt file
Search the location, source and man page of the grep command:
Search the directory that contain the ls command:
Zip or unzip:
Using gzip/gunzip:
Zip the thoca.txt file:
Unzip:
Using tar
Zip the thoca.txt file to the .tar extension:
Checking