Unix/Linux Part 1. Self Test 1 from the textbook. 1) What is the effect of each
ID: 3755608 • Letter: U
Question
Unix/Linux
Part 1. Self Test 1 from the textbook. 1) What is the effect of each of the following commands? A) sort filel file B) WC filel file2 C) grep filel file D) who I sort > abc E) cat filel file2 file3 2) What command results in a reverse sorting of all lines in the /etc/passwd file that contain a zero somewhere on the line? 3) What would be in the file filel in each of the following? A) echo filel >> filel B) cat filel 4) How can you access virtual terminal 3? 5) What command reads its arguments and writes them to output?Explanation / Answer
1)
A) sort file1 file2
-> this command with sort data line wise and display on the sreen no chage in file1 and file2
B) wc file1 file2
this command will give line words lines and character info accordingly. here it will display info of file1 file2 and total.
C) grep file1 file2
This will print file1 and file2 data one by one.
D) who | sort > abc
This will check how many user log in and after sorting it will save in abc file.
E) cat file1 file2 file3
This will print data of all files on the screen one by one.
2)
file contail 0 in /etc/passwd but revers sorting is only displaying line by line revers sort.
3)
A) echo file1 >> file1
This command will print file1 word at the end of the file1.
B) cat > file1
This command will allow user to print in file from command prompt uising ctrl+d we can come out from the writing part.
4)we can access virtual termilan using ctrl+atlr+f3
5)echo command read argumanet and write on terminal.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.