Set - 6

Question 11 :

Write a command to kill the last background job?

Answer :

Kill $!

Question 12 :

Which command is used to delete all files in the current directory and all its sub-directories?

Answer :

rm -r *

Question 13 :

Write a command to display a file's contents in various formats?

Answer :

$od -cbd file_name
c - character, b - binary (octal), d-decimal, od=Octal Dump.

Question 14 :

What will the following command do?

Answer :

$ echo *
It is similar to 'ls' command and displays all the files in the current directory.

Question 15 :

Is it possible to create new a file system in UNIX?

Answer :

Yes, 'mkfs' is used to create a new file system.