-
-
Is it possible to create new a file system in UNIX?
Yes, ‘mkfs’ is used to create a new file system.
-
What happens when a compress command is used in UNIX system?
compress command is used for compressing a file that is for making the file size compact so that it becomes small. When a compress command is used in UNIX all the file attributes like the owner of the file and other things remain same except the file size is compressed and the extension of the file becomes .ZThe general syntax for compressing file iscompress filenameFor instance if one like to compress...
-
What is the difference between the commands sleep, wait and killall?
sleep:
This command is used in UNIX operating system to suspend execution of the system for the specified time limit mentioned in it as parameter.
The general format of sleep command is
sleep no_of_seconds
The sleep suspends the execution of the shell in UNIX operating system for the no_of seconds specified.
For instance
sleep... -
-
-
How do you rewind the tape to start position?
Answer: mt -f /dev/rmt/0 rewind
-
Where is the semaphore stored in UNIX operating system?
Before going into the storage of semaphore it is first vital to know about semaphores. A semaphore is nothing but a term used in UNIX for a variable which acts as a counter. So the next question that comes in mind is what for we need this variable. It’s so simple. The reason is explained below. For instance there may be times when two processes try to access the same file simultaneously. In...
-
What is the difference between Daemon & Server process.
Please give examples of both Daemon and Server processes. Thanks.
-
-
-
-
How to switch to a super user status to gain privileges?
Use ‘su’ command. The system asks for password and when valid entry is made the user gains super user (admin) privileges.
-
-
-
-
-
-
What is the command one can use to list only the directory names?
Before answering this question it is important one should know about ls command in detail in UNIX or LINUX operating system. ls command without any option is used to list files and this command list files generally in alphabetical order. That is the command list the files present in a directory with one file per line displayed on the screen. Simply using s command without any option display all files...
-
Which of the following commands is not a filter?(a)man , (b) cat , (c) pg , (d) head?
Ans: manA filter is a program which can receive a flow of data from std input, process (or filter) it and send the result to the std output.
UNIX Interview Questions
Ans