Lab 3-Linux Basic Commands Combination
Lab 3-Linux Basic Commands Combination
Exercise 1:
Exercise 2:
Explain the meaning of the following commands in Linux, and try to run them in your console.
1. dpkg
2. free
3. hostname
4. ifconfig
5. sudo
6. cat /proc/cpuinfo
7. free –m
8. fdisk –l
Exercise 3:
......................................................................................................................................................
6. Sort on data input is the usr.txt file in the reverse order: ............................................................
8. Search recursive on the /etc directory for all files in which contain ‘log’ word: .........................
Exercise 4:
- Create a file named user.txt. Then, you add n usernames (each in one line, n>=5).
- Display the content of file user.txt
- Display list of n sorted usernames in your file and store that sorted list into a new file named
suser.txt
Submission:
You should capture the result screen of each exercise and include in your completed document
file.Create the directory with a name like <class>-<name><roll number>-Lab-01, e.g. SE0905-
QuangTV-SE03456-Lab01
Copy all your exercise files to that folder.
Compress the folder to .zip/.rar file (with the same name) and upload to LMS.