Which command is used to delete all files in the current directory and all its sub-directories?
rm -r *
Kill $!
Latest Answer: To kill the last background job, the following command is used:$ kill $!The system variable $! stores the PID of the last background job.The other method is first find the PID using the ps command, then use kill command to do the job. ...
Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page.
Latest Answer: The cut command cuts bytes, characters, or fields from each line of a file and writes these bytes, characters, or fields to standard output. If you do not specify the File parameter, the cut command reads standard input.The more command reads files and ...
‘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 :
Latest Answer: Grep - stands for Globally Search a Regular Expression and Print. It is used to search a given string/pattern under the given path and list out all the occurances of it in a file or set of files. Following are the options available for grep ...
cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical
Latest Answer: 'cmp' and 'diff' both command are used to list the differences, the difference between both the command is that 'cmp' is used to find the difference between files whereas 'diff' is used to find the difference between directories.cmp ...
After the command line is terminated by the key, the shel goes ahead with processing the command line in one or more passes. The sequence is well defined and assumes the following order.Parsing:
Latest Answer: when processing a command the searchs for the utility for the command in the directories specified in the PATH varible and it in invokes that utility. That utility will execute the command with help of kernel and the output is given to shell. And then ...
is the output redirection operator when used it overwrites while >> operator appends into the file.
Latest Answer: ">" operator redirects the output to a file, if the file already existst and contains some data in it, the ">" would cause the data over written with new data.">>" Redirects the output to be appened to the end ...
How is the command “$cat file2 “ different from “$cat >file2
Both the commands mean the same , the file file1 is read and its contents are copied to file2
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.
Latest Answer: man and cat ...
ls becomes the input to wc which counts the number of lines it receives as input and instead of displaying this count , the value is stored in file1.
Latest Answer: first ls command will list all the files in the current dir.thenthat result is fed to wc -l which will count the number of lines fed by the input(ie ls ),now finally the result which is the number of lines is fed to the file1. ...
View page << Previous 3 4 5 6 [7] 8 Next >>

Go Top