Command > file
Command >> file
Command < file
Shows a calendar
Display of files and folders, present in the folder where you are
Opening a file
Display of the contents of a file
A process is a collection of virtual memory space, code, data, and system resources. A thread is code that is to be serially executed within a process.
A processor executes Processes , not Threads
Process – is stream of executable code within Thread
Process has its own set of register including program counter,stack pointer
Grep “$^” filename.txt
Grep “$” filename.txt
Grep “^$” filename.txt
Grep $^ filename.txt
$0 would be the first line argument, $1 would be the Second command line argument, $2 the Third, and so on
$1 would be the first command line argument, $2 the second, and so on $0 is the name of the script or function
Both a and b are correct
Both a and b are incorrect
Csh : C shell
Ksh : Korn Shell
Bash : bourne again shell
Ssh : sea shell
$? will return exit status of command .0 if command gets successfully executed ,non-zero if command failed.
$? will return exit status of command .Non-0 if command gets successfully executed ,zero if command failed.
Will return no of error
# will return the number of parameters that are passed as the command-line arguments.
All the above are incorrect
Its mainly used for showing up all params. This show few parameter values passed in shell script.
Its mainly used for showing up all params. This show all values returned.
Its mainly used for showing up all params. This show all parameter values passed in shell script.
None of the above is correct.
Getenv() and putenv()
Getenv() and setenv()
Readenv and putenv()
Readenv() and setenv()
File access count
File owner identifier
File access permissions