⟩ At installation, Red Hat Fedora Linux creates a symbolic link called _____ to the appropriate cd-rom device?
It creates dev/cdrom
However on a newer system it's dev/sr0
It creates dev/cdrom
However on a newer system it's dev/sr0
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
What is the output of this program? #include<stdio.h> #include<fcntl.h> int main() { int fd, fd2, ret; fd = open("san.c",O_RDONLY); ret = close(fd2); printf("%dn",ret); } a) 0 b) 1 c) -1 d) none of the mentioned