-
What is "Piping"?
Pipe accepts the output of one command, and feeds it as an input to the next command.eg: ls | wc -lOutput of 'ls' is fed as input to wc-l. Hence wc counts the number of lines in the result of ls.
-
-
-
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
-
Name the data structure used to maintain file identification?
‘inode’, each file has a separate inode and a unique inode number.
-
How is the command “$cat file2 “ different from “$cat >file2
Both the commands mean the same , the file file1 is read and its contents are copied to file2
-
What is the difference between cat and more command?
Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page.
-
What does the command “$ls | wc –l > file1†do?
Ls becomes the input to wc which counts the number of lines it receives as input and instead of displaying this count , the value is stored in file1.
-
-
-
What is Redirection?
There are 3 types of Redirection.1)Input Redirection2)Output Redirection and3)Error RedirectionInstead of directing the input/output/error from/to the standard devices, we can direct them to/from a file
-
-
-
-
What will the following command do?
$ echo *It is similar to 'ls' command and displays all the files in the currentdirectory.
-
-
Which file holds the list of users that are NOT allowed to use cron ?
Answer: /etc/cron.d/cron.deny
-
What is meant by shell layer manager?
Shell layer manager is also called as shl in short. This utility is used for running number of scripts simultaneously at the same time in a single terminal. This utility plays a very important role in UNIX operating system because as we all know UNIX is a multi-programming operating system. So in other words there many be many instances or occurrences in which the users in the UNIX operating system...
-
-
UNIX Interview Questions
Ans