1/23
Looks like no tags are added yet.
What file(s) will be displayed by the command cat *ch*?
Both patch and catch
What command sends the word count of the file infile to the newfile?
wc infile >newfile
What command is used to display the directory attributes rather than its contents?
ls -1 -d
What command is used to remove a directory?
rmdir
What command is used to display the top of a file?
head
What command is used to extract specific columns from a file?
cut
What symbol will be used with the grep command to match the pattern ‘pat‘ at the beginning of a line?
^pat
The Octal number to be given along with chmod command to make a file readable, writable and executable to the owner, and readable and executable to group and others is:
755
What command is used to sort the lines of data in a file in reverse order?
sort -r
What command is used to remove the read permission of the file ‘note’ from both the group and others?
chmod go-r note
How can you append the output of a command to a file?
Command » file
What command lets you see what folder you are in?
pwd
What command lets you delete a file named ‘filename’?
rm filename
How do you get all files with an r, g or i in the 3rd position?
ls ??[rgi]*
What command do you have to use to go to the parent directory?
cd ..
With what command can you see your user name?
whoami
What command stops a process?
kill
What does the command ls do?
Displays files and folders present in your current folder
What do you use to forward errors to a file?
2> filename
How can you display a list of all files, including the hidden files?
ls -a
What is the difference between Thread and Process?
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.
How will you list only the empty lines in a file (using grep)?
grep "^$" filename.txt
How do you read arguments in a shell program?
$1 would be the first command line argument, $2 the second, and so on; $0 is the name of the script or function.
Which of the following is NOT a proper shell name?
Ssh : Sea shell