P. 1
Questions About Unix Common Commands

Questions About Unix Common Commands

|Views: 3|Likes:
Published by Ashwin Kumar

More info:

Published by: Ashwin Kumar on Sep 29, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less





questions about unix common commands

1. How are commands located in Unix? Ans. The commands can be located using the type command in Unix. 2. How does the type command work? Ans.The type command returns the location of the command that is passed as a parameter to the type command. For example, $ type who When the above command is entered, the shell searches for the command in the search path specified in the PATH environmental variable. If the command is found, the command’s location is displayed on the console. 3. How do you find out whether a command is internal or external? Ans.The commands that are built into the shell are called internal commands. For example, the cd command. The shell does not start any separate process to run the internal commands. The commands for which executable files are stored in some other directory rather then in shell itself are called external commands. For example, the cat command. The cat command is an external program stored in the /bin/cat file. The shell starts a new subprocess to execute an external command. 4. What is a secondary prompt? Ans.Sometimes, a command to be executed is lengthy and you need to split it in several lines. The Unix shell displays a second prompt to accept the incomplete command. By default, the second prompt is displayed as > symbol. 5. How do you stop and resume the scrolling of the screen display? Ans.You can stop scrolling of the screen display by pressing CTRL-s and resume scrolling by pressing CTRL-q keys from the keyboard. 6. How do you get one-line descriptions of any command in Unix? Ans.You can get one-line description of any command by using the whatis command in Unix. For example, to see the one-line description of cat command, you specify the following command:


3 09073.743- 570883%# 6081742900-4.798.9.3/708:208.98..059903..422..425090.389458..3/4:300/948599380.3/3&3  470.:90.422..0/.74341908.1901443 .3.. 38 4:.422.:9 90 80.3/708:20908.7003/85.7574259 38 $4209208 .422.3.3/94-000.422.7594341.308:-574..8.43/.250 9480090430 30/08.308  %0&380/85.07.422.422.309430 30/08.-570883%# 8.:90/8039.7003/85.3/-:8390.75943841..98.43/57425994..7594341.3/ /01.3/3&3 38 4:.910 %08089.74341908.0889400.7/   4/44:09430 30/08.3/   .43/5742598/85.80.3/ 4:850.882-4   4/44:8945.3/  .80.422.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->