-
-
-
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.
-
What is the use of crontab command in Linux Operating system?
Crontab is a very useful command used for scheduling purpose. If a person working inn Linux operating system wishes to schedule to run later they can achieve this by using the crontab command. Thus it is possible that each user working in the Linux operating system can define their own crontab. There are many options available with this crontab command. Some of them are namely:
Crontab with... -
How many prompts are available in a UNIX system?
Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt).
-
-
-
UNIX Maximum simultaneous logins
how many simultaneous logins are allowed in Linux/Solaris for a single user ?
-
Inter process command
inter process command in UNIX be achieved by a)pipes b)messages c)semaphores d)shared memory e)all
-
What does command "kill -9" does ?
(Forces a process to be killed. ) But what actually happens behind the scene?
-
Write a command to display a file’s contents in various formats?
$od -cbd file_namec - character, b - binary (octal), d-decimal, od=Octal Dump.
-
How to save a path in command prompt to recall it later.
How can I save a path to my favorites in command prompt to recall it later?
-
What does the command “ $who | sort ‚logfile > newfile‚do?
The input from a pipe can be combined with the input from a file . The trick is to use the special symbol “-“ (a hyphen) for those commands that recognize the hyphen as std input.In the above command the output from who becomes the std input to sort , meanwhile sort opens the file logfile, the contents of this file is sorted together with the output of who (rep by the hyphen) and the sorted output...
-
-
Unix & Aix
Unix & Aix what's the difference between the two.
-
Is it possible to restrict incoming message?
Yes, using the ‘mesg’ command.
-
-
-
What is the use of the command "ls -x chapter[1-5]"?
Ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on.
UNIX Interview Questions
Ans