-
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.
-
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
-
Name the data structure used to maintain file identification?
inode, each file has a separate inode and a unique inode number.
-
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
-
How does one translate characters in UNIX operating system?
This is done by using the tr command in UNIX operating system. This command in UNIX is used for translating characters from standard input.
The general syntax of this command is:
tr character_from character_to
That is in above character_from and character_to can take one or more single characters. The character_from denotes the input character and whatever... -
What is the use of make program in UNIX?
The make program plays a very important role in a multiprogramming operating system namely UNIX. When there is more than one file and when changes are made to the files make program keeps track automatically of the changes made to these files and recompile them as and when needed automatically. The make program takes as its input any file name or in general a file named as makefile which has in it...
-
What is meant by Intermachine communication?
Intermachine communication is the communication between two machines. With respect to the context of UNIX operating system there are many commands available for achieving this intermachine communication. Some of them are listed below namely:
uucp:
This command is used for transferring of files between UNIX machines. There are many options available in this command to name one of which... -
What is meant by the process of pipeline?
Just as the name depicts pipeline is the process in which when a pipe is set between two commands then the standard output from the first command is passed through the pipe specified to the second command and thus acts as an input to the second command. In other words the standard output of the first command is pipelined as standard input to the second command. This is done by using the symbol for...
-
-
-
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.
-
UNIX Interview Questions
Ans