-
What is redirection?
Directing the flow of data to the file or from the file for input or output.Example : �ls > wc
-
What are shell variables?
Shell variables are special variables, a name-value pair created and maintained by the shell. Example: PATH, HOME, MAIL and TERM
-
-
How to terminate a process which is running and the specialty on command kill 0?
With the help of kill command we can terminate the process.Syntax: kill pidKill 0 - kills all processes in your system except the login shell.
-
-
-
How do you get current CPU utilization, memory and disk space usage in Linux/Unix?
What are the commands?
-
Proxy Server IP
Command to find the IP of an Proxy Server in UNIX
-
Connect Remote Terminals
What is the command to connect to remote terminals?
-
-
-
What is relative path and absolute path?
Absolute path : Exact path from root directory.Relative path �: Relative to the current path.
-
-
-
-
-
Construct pipes to execute the following jobs?
1. Output of who should be displayed on the screen with value of total number of users who have logged in displayed at the bottom of the list.2. Output of ls should be displayed on the screen and from this output the lines containing the word �poem� should be counted and the count should be stored in a file. 3. Contents of file1 and file2 should be displayed on the screen and this output should be...
-
-
-
How to grep directories
How to grep directories has reached above 80% from the df output using basin grep command.below are the steps i have used
df -h > date.ksh
grep "%" date.ksh >space.ksh
cut -c 40-44,45-80 space.ksh > %.ksh
grep "[80-10][0]%" %.ksh
see the output after above cmd
$ grep "[80-10][0]%" %.ksh
100% /opt/tivoli/tsm
80% /prod/users/edw
UNIX Interview Questions
Ans