Linux World
Pages
Home
Programming
Computer Architecture
Tit Bits
Trouble Shoot
Kernel Related
Quizzes
Search
Linux Basics commands quiz
Linux Basic Commands quiz
Linux Basic Commands quiz
This is a quiz on basic commands of linux.
Which option with the command "rm" is required to remove a directory
-d
-f
-r
-i
The command used to display the manual pages for any command is
man
manual
help
show
Which of following will show the first 5 lines of the input file
less -5 file
head -5 file
more -5 file
show -5 file
Which option of "ls" will show the hidden files
-h
-a
-l
-i
The command "cat -n file" will
Add a new line after every line of the output
Add line numbers to every line of the output
Will show only a count of number of lines in the file.
Will not print any thing.
The command "echo -n hello" will
Print "hello" and add a new line after it
Not print any thing
Print "hello" and not add a new line after it
Change the case and print HELLO
The command sort by default sorts
Text
Numbers
Any thing
Special symbols
Which of the following will list the users who currently logged in in the system
login
which
who
tty
To change the password of a user we can use the command
password
passwd
chpass
su
Which command can be used to view the content of a file in reverse i.e from last line to first.
cat -r
rev
tac
less
feel free mail tux.think@gmail.com for any corrections or clarifications.
Answers are given at :
Answers to Linux commands quiz -1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Follow by Email
No comments:
Post a Comment