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
Latest Answer : The Unix commands alone are powerful, but when two or more commands get combine together, we can accomplish complex task with ease.In unix we can combine the two or more commands together to perform multiple action simulatenously with the help of Pipe ...
Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt).
Latest Answer : Bash supports 4 prompts:PS1 - the default promptPS2 - for multi-line inputPS3 - printed for the select commandPS4 - printed before output if set -x is set(see http:// www . gnu . org/software/bash/manual/bashref . html )The first two are common to the ...
Yes, ‘mkfs’ is used to create a new file system.
Latest Answer : Yes,mkfs -t filesystem device name.for e.gmkfs -f ext3 /dev/hda2 ...
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 ...
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 ...
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
$ ls > file1$ banner hi-fi > message$ cat par.3 par.4 par.5 >> report$ cat file1>file1$ date ; who$ date ; who > logfile$ (date ; who) > logfile
Latest Answer : $ ls > file1=====>Redirects the output of ls command to file1$ banner hi-fi > message=====>Redirects the output of banner command to message$ cat par.3 par.4 par.5 >> report=====>Redirects the output of files to report and the o/p ...
df -h
Latest Answer : use "df -k" or "df -h" ...
Latest Answer : both are same. daemons are the background processes in unix. similarly background processes in windows are called as service agents or service processes. ...