Module 1: Linux Operating System Lab - Level 1
Module 1: Linux Operating System Lab - Level 1
Lab – Level 1
1. Fetch a tar.gz and. tbz file and extract it using tar and gzip command.
2. Extract the above files into a directory and not the same directory where these tar.gz and. tbz files
are present.
3. Show the difference between two files with colored output. Also merge the difference between
two files side by side.
4. Create an alias command for the following:
listing of directory contents
math calculator
to compare files line by line using diff and display output in color form
5. Make mount command output in human readable format.
sed
7. Get system memory, cpu usage, and cpu memory info quickly.
9. After remote login copy a file from your friend's system into your system.
10. WAP that takes a filename as input and checks if it is executable, if not make it executable.
11. WAP to take string as command line argument and reverse it.
12. WAP that asks for the user’s favourite color and if it is not ‘blue’ informs him that it is wrong
answer, waits for 3 secs, clears the screen and asks the question again.
13. WAP that reads each line of a target file, then writes the line back to stdout, but with an extra
blank line following. This has the effect of a double spacing the file. Include all necessary code
whether the script gets the necessary command line argument (a filename), and whether the
specified file exists. When the script runs correctly, modify it to triple-space the target file.
Finally, write a script to remove all blank lines from the target file.