Description
- Test drive and understand the usage of all the commands given in the 50 Most Frequently Used UNIX / Linux Commands and pdf
- Create a directory and create a file inside that directory.
- List the files and directories that are empty in a working directory.
- Show commands to delete empty and non-empty directory.
- Find the location of the input files using locate and find command.
- View the user permissions and ownership of the files in the current directory and change the ownership of some selected files to another user.
- List all the files in the current directory and subdirectories.
- Concatenate the two input files: “sample1.txt” and “sample2.txt” and save it to a new file named “Input”.
- Copy the contents of file ‘sample2.txt’ to ‘sample.txt’
- Append the file contents of input file ‘sample2.txt’ to the end of the first input file ‘sample1.txt’.
- Remove the permission for the users to read, write and execute the file ‘sample.txt’.
- Display the current date with the day of week, month, time and the year.
- Show the calendar of previous, current and next month.
- Sort the contents of the file ‘sample1.txt’ in alphabetical order.
- Erase duplicate records in the file ‘sample1.txt’ and display only the unique records
- Add line numbers to the file ‘sample2.txt’
- Find out whether the two pairs of input files are identical or not.
Compare sample1.txt and sample2.txt
Compare sample2.txt and sample.txt
- Show how the input file “sample1.txt” differs line by line from “sample2.txt” in context and unified mode.
- Solve the arithmetic expression: ((8+12)*(5-3))/2 using linux commands, Cut and display the first 10 characters of every line of the file “Input.txt”.
- Print the name of the current working directory.
- Process Status
- List all the running processes with their corresponding PIDs.
- List the processes that are not associated with the terminal.
- List the processes that are associated with the terminal.
- Print the number of characters, number of lines and number of words all the given input files.
- Print the length of the longest line from all the input files.
- Move the contents of the input file sample.txt to a new file.
- Copy the contents of one directory to another directory.
- Reverse the lines of the two input files and concatenate the file contents using a single command.
- Delete all the files with *.txt extension from the working directory using yes command.
- Given the input file “sample1.txt”, print the number of the lines that match the pattern “system”.
- Having sample1 file as input, print the matched lines that contain the pattern “Unix” as whole words.
- Print the lines from “sample1.txt” that do not match the pattern “OS”.
- Fetch the files that contain the word “OS”, “Operating System”, “Operating Systems” with its respective line number. (Ignore the case).
- Having “sample1.txt” and “core” as the input and pattern respectively, along with the matched line print three lines before and after the pattern match.
- Find and replace the string “OS” with “Operating System”.
- List only the text files in the current working directory with its corresponding disk space occupied.
- Show the last modification time of all the input text files.
- Delete the line that has the word “Powerful” from text file “sample2.txt”.
- Print the roll numbers that end with even numbers in the format (COE18B002) up to COE18B050.
- Use filter commands like head, tail, more to view the file contents page by page.
- Compress the current working directory contents to a tar file and extract those files from the compressed tar file.
- Compress the files using zip command.
- Zip the input file “sample1.txt” as samplezip.zip and remove the file from the current directory after zipping.
- Add “sample2.txt” and update the zip archive.
- Zip a directory with all its contents.
- Remove a file from the zip archive
- Unzip the contents from samplezip.zip



