Unix/Linux Operating Systems Quiz
Test your knowledge of Unix/Linux operating system commands, concepts, and history including file management, text editing, permissions, and system operations.
Questions
How can you display the line numbers after opening a file in vi ?
- :se ic
- :se nu
- :set G
- ctrl+n
How can you insert a new line in vi ?
- Esc+O
- Esc+i
- Esc+G
- Esc+x
How can I remove a directory Fold1 (/home/Mydir/Fold1) which have 3 files in it .
- rm /home/Mydir/Fold1
- remove /home/Mydir/Fold1
- rm -r /home/Mydir/Fold1
- rmdir /home/Mydir/Fold1
Which command will search recursively in directories to list the file having a string “file” inside it's content.
- grep -l file
find . -type f - Find . -type f | grep file
- ls -1 | grep file
- grep file
ls -1
What do you use to forward errors to a file?
- &> filename
- 1> filename
- 2> /dev/null
- 2> filename
How to create a new file without opening it
- vi filename
- touch filename
- cat filename
- more filename
How can you append the output of a command to a file
- command <> file
- command > file
- command | file
- file > command
cal command is used to
- date
- day
- calendar
- month
grep is used to
- search a pattern
- grape juice
- grip a file
- compress a file
ls -i is used to
- list all files
- list all hidden files
- list files with inode number
- list files starting with i
vi is an
- editor
- variable
- object
- class
chmod is used to
- change moderators
- change permission mode
- change mind set
- change nothing
What is UNIX?
- Operating system
- Comapny
- Computer Language
- software
Which company originally developed UNIX?
- NASA
- AT&T
- IBM
- Apple
Which of the following operating systems are based on the UNIX kernel?
- Sun Solaris
- MAC OS X
- Windows 7
- chrome OS
Unix is written in a..........
- In high level language (C)
- Assembly language (low level)
- Machine Language
- All of the above
What is a Unix shell?
- A game
- A command-line interperter
- A sound card driver
- A text editor
Command to create user account in unix?
- createuser
- newuser add
- adduser
- useradd
Command use to connect to the outside world in unix
- remote
- internet
- vpn
- telnet
How do you create a new directory called "flower"?
- newdir flower
- mkdir flower
- crdir
- mkdir