Unix/Linux Commands and Operations
Test your knowledge of Unix/Linux command-line operations including file management, process control, and system utilities
Questions
How do you find out the current directory you’re in?
- $dir
- pwd
- currdir
- none
What are the default umask values
- 000
- 022
- 033
- 222
Which is the inner most layer in unix operating system
- Hardware
- Kernel
- Shell
- Application Programs
Which command is used to modify the modification time and access times of a file
- modify
- touch
- cat
- Not possible
Which command is used to create a zero size file?
- cat
- create
- touch
- new
Which command gives the time of last inode modification?
- ls -i
- ls -l
- ls -li
- ls-lc
Which command can be used to view the current users login name?
- logname
- who
- whos
- ps
UNIX is a single user operating environment
- True
- False
Whats the command used when the terminal settings are disrupted and we see garbage in our terminal
- stty -d
- tput clear
- stty sane
- stty clear
Which of the following commands can compress a file and as well as archive it?
- tar
- gzip
- xr
- zip
Which environment variable can be used to change the shell prompt?
- TERM
- PROMPT
- PS1
- PS2
Unix treats the main memory(RAM) of a PC as a file.
- True
- False
Which command is used to ensure that background jobs continue to run even after logginf off.
- noexit
- nokill
- xlog
- nohup
Whats the procedure to ensure that the output of a command is not displayed on the terminal?
- command >
- command > /dev/null
- command | cat *
- command < /dev/null
What is the command to invoke unix's command line calculator?
- calc
- calculator
- cc
- bc
which of the following is not the unix command to send email
- mail
- mailx
- Mail
- email
which command helpful to chat with other users in unix
- talk
- chat
- meet
- ping
which command displays the disk space in unix
- dl -k
- ls -k
- df -k
- dz -k
by which expression we can schedule jobs in unix
- bron
- cron
- crop
- drop
which command is used to move files from one location to other
- ph
- jp
- mp
- mv