Question
C/C++ in UNiX HELP!! 1. [100 = 25*4] Create a script of the session while experimenting with the following commands in one your directories: I.
C/C++ in UNiX HELP!!
1. [100 = 25*4] Create a script of the session while experimenting with the following
commands in one your directories:
I.
List currently running jobs
II.
Kill one of the running jobs
III.
Cat an existing file using a command that misspells one character in the filename
IV.
Correct the character using the next command run cat on correct file
V.
Try to list files in \lost+found directory
VI.
Find utilities to compress files and directories on your system
VII.
Run the ls command with help option
VIII.
Run the help command on echo
IX.
Echo your name and pipe it to the od command to see each character
X.
Create a new file containing only your name using echo
XI.
Remove the file you just created
XII.
Copy an existing file in your directory to another file
XIII.
Move the copies file to another file
XIV.
Use grep to search for a word in one of your files
XV.
Display the first line of a file
XVI.
Display the last line of a file
XVII.
Sort the contents of a file
XVIII.
Compare two files
XIX.
Find the type of files in your directory
XX.
Compress a directory using tar command
XXI.
Compress the tar file you created using gzip
XXII.
Put this .tar.gz file into another directory and uncompresss to get original
directory back
XXIII.
List the users on your system
XXIV.
Write todays date and time
XXV.
Exit the script using exit command
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started