Which of the following commands is used to obtain a list of all files by modification time?
1. ls -1
2. ls -t
3. ls -i
4. ls -R
If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
2.stty intr ^c
3. stty echoe
4.stty echo ^a
1.group has read permission only
2.other has read permission only
3.owner has read permission only
4.group has write permission only
Which command is used to remove a file?
Which command is used to remove the read permission of the file 'note' from both the group and others?
1.chmod go+r note
2. chmod go+rw note
3.chmod go-x note
4.chmod go-r note
4.All of the above
4.All of the above
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
The % key allows you
1. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
2.to move the cursor to the upperleft corner of the screen
3. to move the cursor backward to the beginning of a word
4.to move the cursor to the first column in the current line
The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
The cp command uses:
1.standard input file
2.standard output file
3.both input and output file
4.neither standard input nor standard output file
The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
Which column contains all details of the permissions of a file when you issue the ls -l command?
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
1.chmod u+x emp[1-3]
2.chmod 777 emp*
3.chmod u+r ??? emp
4.chmod 222 emp?
Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
2. more [emp][!0-9]
Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
1.cp chap?? progs
2.cp chap* progs
3.cp chap /progs/*.*
4.cp chap?? /progs/*
1.wc - 1
2. wc -c
3. wc -w
4. wc -r
Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
1.chmod -R a+x progs
2.chmod -R 222 progs
3.chmod -1 a+x progs
4.chmod -x a+x progs
Which command is used to sort the
1.wc infile >newfile
2.wc <infile >newfile
3. wc infile - newfile
4. wc infile | newfile
Which of the following commands is used to display the directory attributes rather than its contents?
1. ls -l -d
4. ls -F
Which of the following commands is used to update access and modification times of a file?
Which of the following directories contain all the Alias created by a user, including his login
Which of the following special shell variables is used to process number of the last background job?