-
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
-
-
-
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.
-
-
-
How to password protect the group ?
Answer: No command option for giving or changing password
-
Is it possible to count number char, line in a file; if so, How?
Yes, wc-stands for word count.wc -c for counting number of characters in a file.wc -l for counting lines in a file.
-
-
-
-
What is the significance of the “tee†command?
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.
-
-
Explain the steps that a shell follows while processing a command?
After the command line is terminated by the key, the shel goes ahead with processing the command line in one or more passes. The sequence is well defined and assumes the following order.Parsing: The shell first breaks up the command line into words, using spaces and the delimiters, unless quoted. All consecutive occurrences of a space or tab are replaced here with a single space.Variable evaluation:...
-
How does the kernel differentiate device files and ordinary files?
Kernel checks 'type' field in the file's inode structure.
-
Linux General questions.
1. To which operating system is GNU/Linux compatible? a. Windows b. Unix c. it\'s a system on it\'s own d. don\'t know2. What is the origin of GNU/Linux? a. 1984 by Richard Stallman b. 1987 by Andrew Tannenbaum c. 1991 by Linus Torvalds d. don\'t know3. What has Linus Torvalds developed? a. he developed the whole system b. he developed the kernel of the system c. he is only...
-
-
-
Do you have idea about "Shell Job Control"?
Explain about Background and Foreground processes
-
UNIX Interview Questions
Ans