Linux Commands and System Administration
Test your knowledge of Linux operating system commands, file permissions, system administration, and kernel concepts
Questions
what is mobile phones version of linux OS by "The Linux Foundation" called ??
- LiMo
- Moblin
- Android
- WebOS
Which directory under the root contains the information on devices
- /usr/bin
- /usr/sbin
- /usr/peripherals/dev
- /etc/dev
Which directory under the root contains the information on devices
- /usr/bin
- /usr/sbin
- /usr/peripherals/dev
- /etc/dev
For some file the access permissions are modified to 764. Which of the following
- Every one can read, group can execute only and the owner can read and write
- Every one can read and write, but owner alone can execute
- Every one can read, group including owner can write, owner alone can execute
- None
What is a system call()
- A request by the users to access kernel functions
- A request by kernel to the device
- A request by the device to kernel
- None
What is SPOOL?
- A mechanism to connect to printer, keyboard and monitor in linux
- A mechanism to share printer across users
- A request made by the device to linux kernel
- None
How to sort a file in decending order
- sort -d
- sort
- sort -r
- sort -R
What is a named pipe?
- A Pipe used by kernel to access device
- A pipe to be used by the user to access device
- An abstraction to provide support for inter process communication
- A device
Count the number of errors in the statement if [password = password1] then echo password else password
- 0
- 4
- 1
- 2
What is the purpose of sync command?
- To synchronize user applications
- To synchronize keyboard and monitor
- To synchornize disk buffers
- To syschronize main memory and cache memory
User's with user id as 0 (Zero) are
- Printer users
- Not allowed to login using rlogin/ssh
- root users
- User id cannot be 0
What does the command umask 123 do?
- It sets file owner permissions to read and write
- It sets the permissions of other users to read
- It sets group permissions to read and execute
- All of them
Which command will create a hard link named "Link" to the "Test" file?
- ln -s Test Link
- ln Test Link
- ln / Link Test
- ln -h Link Test
Which group of letters are the file permissions that apply to a group in the string r--r-xrwx?
- r--
- r -x
- rwx
- None
What Linux file would you use when performing a rescue after a hard disk problem occurs?
- /dev/hda1
- /dev/null
- /dev/ram
- /dev/tty
Which command do you use to make the /etc/inputrc file immutable?
- chattr +i /etc/inputrc
- chmod 666 inputrc
- chmod g=rw inputrc
- None
What do you use the rp field in the /etc/printcap file to specify?
- A remote machine address
- A printer on a remote machine
- A remote printer address
- Both a printer and a remote machine
Which of these commands finds all lines on which the word "Linux" occurs and then deletes them in vi editor
- g:Linux/d
- :g/Linux/d
- g/d/Linux
- Linux/:g/d
How do I uncompress a file?
- gunzip/expand
- gzip
- zip
- winzip
How do I tar/untar a file?
- tar -cvf file/tar -xvf file
- tar -xvf file /tar -cvf file
- tar -cvf file.tar <file>/tar -xvf file.tar <file>/
- tar -xvf file.tar <file>/tar -cvf file.tar <file>/