⟩ An extended partition can contain many sub partitions called_______?
extended partition contain logical partition
extended partition contain logical partition
One of the entry of /etc/passwd file is shown below user1x11112222google/home/user1/bin/bash Which among the following will print userid and home dir in the following pattern "user1/home/user1"? a) awk `{print $1 "" $6}` /etc/passwd b) awk `{print $1 "" $7}` /etc/passwd c) awk `{print $2 "" $6}` /etc/passwd d) awk `{print $2 "" $7}` /etc/passwd
What is the command that can print lines of first file matching with second file? a) printline b) cmp c) com d) comm
How do you remove duplicate lines from the file foo using uniq? a) sort foo | uniq -u b) sort -u foo | uniq -d c) sort foo | uniq -c d) sort foo | uniq -I
who | cut -d " " -f1. What is the ouput if the who command displays like this user1 tty 0 1234? a) user1 b) user1 tty 0 1234 c) tty d) tty 0 1234
Which character to use to escape meaning of special characters in search operations? a) [] b) ^ c) . d)
Which one is used to select only one copy of the repeated lines? a) uniq -u b) uniq -d c) uniq -c d) uniq -I
Indicate the right option to search for BOB, Bob, BOb or BoB? a) grep -i Bob files b) grep 'B[oO][bB]' files c) grep '[BOB]' files d) grep -v 'Bob' files
How can you search for blank line in a file? a) $ grep " " file b) $ grep "^$" file c) $ grep [" "] file d) $ grep [^$] file
Which option of grep displays the line number as well? a) -v b) -l c) -n d) -E
What will be printed for the command below? $ grep -c "^echo" abc a) The count of lines that do not contain the pattern echo in file abc b) The count of lines which begin with the pattern echo in file abc c) The count of lines that ends with the pattern echo in file abc d) None of the above