-
-
-
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 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
-
-
What does command "kill -9" does ?
(Forces a process to be killed. ) But what actually happens behind the scene?
-
How to copy a file from Remote AIX server to my local windows desktop
I am logging to remote AIX server, i want to copy a file from that server to local windows desktop. How can i do this?
-
Extracting File Name
How can you extract just the Filename from the Fully Qualified Path and Filename.Basename?
-
UNIX Command to Store Data
You have to store data on the system which command will you use(a) fread(b) fwrite(c) read(d) write
-
Searching for file in UNIX
How to search a file in a directory having sub directories having size more than 10MB?
-
Extracting Characters and Mathematical Computation
I have a file with 1 record only and i.e. "Ashish|Bhasin|30000|END", I want to extract the first three characters of the third column and divide it by 10, so in the above case the answer should be 30.
I am using cut command to get 30000 out but not being able to use it further to divide it by 10.
Any bits? -
What is a pipe and give an example?
A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command. Example : ls -l | prThe output for a command ls is the standard input of pr. When a sequence of commands are combined using pipe, then it is called pipeline.
-
What difference between cmp and diff commands?
cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical
-
What is the difference between > and >> redirection operators ?
Is the output redirection operator when used it overwrites while >> operator appends into the file.
UNIX Interview Questions
Ans