-
What is the use of ‘grep’ command?
‘grep’ is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s). Syntax : grep Example : grep 99mx mcafile
-
-
-
-
-
-
-
-
-
-
Hard link and Soft link
What is the difference between hard link and soft link?
-
Portable UNIX
Why is UNIX more portable than other operating systems?
-
Find Open Ports
What UNIX command do you use to find out the open ports in a system?
-
-
-
Boot cdrom -s
when we give Boot cdrom -s which CD should be there inside cdrom ?
-
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...
-
-
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...
-
UNIX Interview Questions
Ans