Linux World
Pages
Home
Programming
Computer Architecture
Tit Bits
Trouble Shoot
Kernel Related
Quizzes
Linux Tips
Follow @Linux_world
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
4 comments:
Manaliplasticstationary98
September 13, 2020 at 10:03 PM
Amazing test
Reply
Delete
Replies
Satish
October 3, 2020 at 11:05 PM
Thank you
Delete
Replies
Reply
Reply
Anonymous
June 14, 2023 at 12:55 AM
This comment has been removed by a blog administrator.
Reply
Delete
Replies
Reply
Jayanth
March 5, 2024 at 9:14 PM
This comment has been removed by a blog administrator.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
Amazing test
ReplyDeleteThank you
DeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete