Related differences

Linux vs Unix

Ques 96. Explain kernal and shell.

Kernal: It carries out basic operating system functions such as allocating memory, accessing files and handling communications. Shell:A shell provides the user interface to the kernal.There are 3 major shells : C-shell, Bourne shell , Korn shell

Is it helpful? Add Comment View Comments
 

Ques 97. What is ex and vi ?

ex is Unix line editor and vi is the standard Unix screen editor.

Is it helpful? Add Comment View Comments
 

Ques 98. Which are typical system directories below the root directory?

(1)/bin: contains many programs which will be executed by users (2)/etc : files used by administrator (3)/dev: hardware devices (4)/lib: system libraries (5)/usr: application software (6)/home: home directories for different systems.

Is it helpful? Add Comment View Comments
 

Ques 99. Construct pipes to execute the following jobs.</SPAN><SPAN class="answers">
</SPAN>

1. Output of who should be displayed on the screen with value of total number of users who have logged in displayed at the bottom of the list.
2. Output of ls should be displayed on the screen and from this output the lines containing the word ?poem? should be counted and the count should be stored in a file.
3. Contents of file1 and file2 should be displayed on the screen and this output should be appended in a file
.
From output of ls the lines containing ?poem? should be displayed on the screen along with the count.
4. Name of cities should be accepted from the keyboard . This list should be combined with the list present in a file. This combined list should be sorted and the sorted list
should be stored in a file ?newcity?.
5. All files present in a directory dir1 should be deleted any error while deleting should be stored in a file ?errorlog?.

Is it helpful? Add Comment View Comments
 

Ques 100. Explain the following commands.

$ ls > file1
$ banner hi-fi > message
$ cat par.3 par.4 par.5 >> report
$ cat file1>file1
$ date ; who
$ date ; who > logfile
$ (date ; who) > logfile

Is it helpful? Add Comment View Comments
 
</SPAN> 5) Explain the following commands. " />

Most helpful rated by users: