Unix/Linux Commands and System Administration
Test your knowledge of Unix/Linux commands, process management, file systems, permissions, and system administration utilities
Questions
what is the command to view the last 20 command issued?
- View
- history -20
- Prev 20
- Last 20
- None of the above
Users on your network cannot print to a Linux printer. You decide to restart the printer daemon, which command would achieve that?
- topq printer-name
- enable printer-name
- restart printer-name
- up printer-name
- None of the above
What is "tin"?
- Terminal Interpreter
- The command is to change the time
- The command to compare text files
- A newsreader
- The command to compile
What are the file attributes for executing Perl programs?
- 666
- 755
- 766
- 777
lets you connect to a remote host
- rlogin
- remote
- login
- ftp
returns your username
- whoru
- username
- whoami
- none
a textual World Wide Web browser
- link
- lynx
- web
- emacs
best compression for UNIX files
- zipplus
- winrar
- winzip
- gzip
what is the command use to send email with subject?
- mail -sub "subname"
- mail -s "subname" "emailid"
- mail "emailid" (sends an email with default sub line))
- none
display last part of file
- less
- last
- tail
- more
Use this command to count the number of characters, words, and lines in a file
- wc
- count
- cant count words in a file
- number
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.
- tee
- foo
- log
- emacs
Which of the following commands is not a filter?
- cat
- man
- pg
- head
Which of the following is true?
- UNIX is a widely used mail system
- UNIX is case sensitive
- UNIX has a graphical user interface
- All of the above are true
What is inode?
- File status indicator
- It is stored in both disk and memory and tracts file status
- There is one inode for each file on the system
- All the above
- None of the above
Output of below code is: main() { fork(); fork(); fork(); printf("Hello"); }
- "Hello" will be printed 3 times
- "Hello" will be printed 4 times
- "Hello" will be printed 8 times
- Error
Which is the not valid state of Unix process?
- Waiting
- stopped
- Zombie
- None
Which command is used to change your password?
- password
- pass
- passwd
- pwd
Which command allows you to determine if a host is connected to the Internet?
- ping
- cmd
- nalookup
- ls-la
The fork() function is used to create a new process from an existing process.
- True
- False