Deck 3: Linux Commands and Functionality

Full screen (f)
exit full mode
Question
How would you switch to virtual terminal 1?

A)Ctrl+Alt+F1
B)Alt+F1
C)Ctrl+F1
D)Shift+Ctrl+F1
Use Space or
up arrow
down arrow
to flip the card.
Question
In which directory are the crontab files for users stored on suse linux?

A) / var / spool / cron / tabs
B) / usr / lib / cron
C) / usr / bin / cron / crontabs
D) / var / spool / cron / users / tabs
Question
How would you lock the user account named csm099?

A)usermod -l csm099
B)usermod -L csm099
C)usermod --l csm099
D)usermod -lock csm099
Question
How do you copy an entire directory structure? E.g. from Project to Project.backup

A)cp -r Project Project.backup
B)cp -e Project Project.backup
C)cp -d Project Project.backup
D)cp -s Project Project.backup
Question
.............is the command used to create new directory.

A)mkdir
B)newdir
C)dir
D)mk / dir
Question
Command used to create an empty file.

A)mtfile
B)touch
C)intouch
D)file
Question
Which is the commmand used to remove or delete file with out confirmation msg ?

A)rm-f
B)rm
C)del
D)remove
Question
........command is used to show the logger or user

A)(?)
B)who
C)no of
D)(???)
Question
"cat" is the command used to

A)change directory
B)move directory
C)come out of shell
D)see the contents of file
Question
What command, followed by the directory name is used to access that specific directory?

A)cp
B)cd
C)access
D)acs
Question
How would you show a list of files and directories that are inside the current directory.

A)list
B)listfiles
C)ls
D)lst
Question
What command allows you to logout of the system?

A)lgt
B)logout
C)logot
D)out
Question
You have written a shell script that must be run as root in order to work properly. What is the most secure way to give a normal user the ability to run this program?

A)Set permissions to 777 on the script
B)Make the user a member of the root group
C)Make the user the owner of the script
D)Set the SUID bit on the script
Question
Which of the following modes of operation exist in vi?

A)insert
B)type
C)search
D)remove
Question
Which of the following commands can be used to change the group owner of a file?

A)chown
B)chmod
C)chattr
D)attrch
Question
Which command to use for complete details of a command on the shell?

A)help
B)(?)
C)man
D)hlp
Question
You need to change some settings on your Apache server. Which is the best tool to use for logging in remotely?

A)rsh
B)ssh
C)rlogin
D)telnet
Question
Which of the following runlevels will reboot the system?

A)0
B)2
C)4
D)6
Question
You want to change the permissions on the file named "fifteen" so that root has all permissions and they are denied all other users. Which command should you use?

A)chmod fifteen 700
B)chmod 100 fifteen
C)chmod 700 fifteen
D)chmod fifteen 100
Question
Your PC is unable to boot off the Linux install CD. Which utility should be used to create an installation boot floppy?

A)fdisk
B)cp
C)dd
D)tar
Question
Which of the following below are true functionalities of shell?

A)Authenticates user
B)Interprets commands
C)Allocates time and memory to programs
D)Only a and b
Question
Which of the following below are true functionalities of Kernel?

A)Allocates time and memory to programs
B)Authenticates user
C)Interprets commands
D)All choices are correct
Question
To implement new application on IBM z / 10. Which of the following options need to be considered if it to be implemented in Linux?

A)IBMz / OS outperforms Red Hat Linux in commercial workloads
B)IBMz / OS is more expensive, Linux is shareware
C)Red Hat Linux does not support all devices supported by IBMz / OS
D)z / OS is supported by IBM SupportLine, whereas Red Hat Linux can only be supported by Red Hat
Question
A process is identified by a unique

A)Pid
B)Id
C)processed
D)proid
Question
Which command reduces the size of a file?

A)pzip
B)gcat
C)pgcat
D)gzip
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Linux Commands and Functionality
1
How would you switch to virtual terminal 1?

A)Ctrl+Alt+F1
B)Alt+F1
C)Ctrl+F1
D)Shift+Ctrl+F1
Ctrl+Alt+F1
2
In which directory are the crontab files for users stored on suse linux?

A) / var / spool / cron / tabs
B) / usr / lib / cron
C) / usr / bin / cron / crontabs
D) / var / spool / cron / users / tabs
/ var / spool / cron / tabs
3
How would you lock the user account named csm099?

A)usermod -l csm099
B)usermod -L csm099
C)usermod --l csm099
D)usermod -lock csm099
usermod -L csm099
4
How do you copy an entire directory structure? E.g. from Project to Project.backup

A)cp -r Project Project.backup
B)cp -e Project Project.backup
C)cp -d Project Project.backup
D)cp -s Project Project.backup
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
.............is the command used to create new directory.

A)mkdir
B)newdir
C)dir
D)mk / dir
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Command used to create an empty file.

A)mtfile
B)touch
C)intouch
D)file
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Which is the commmand used to remove or delete file with out confirmation msg ?

A)rm-f
B)rm
C)del
D)remove
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
........command is used to show the logger or user

A)(?)
B)who
C)no of
D)(???)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
"cat" is the command used to

A)change directory
B)move directory
C)come out of shell
D)see the contents of file
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
What command, followed by the directory name is used to access that specific directory?

A)cp
B)cd
C)access
D)acs
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
How would you show a list of files and directories that are inside the current directory.

A)list
B)listfiles
C)ls
D)lst
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
What command allows you to logout of the system?

A)lgt
B)logout
C)logot
D)out
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
You have written a shell script that must be run as root in order to work properly. What is the most secure way to give a normal user the ability to run this program?

A)Set permissions to 777 on the script
B)Make the user a member of the root group
C)Make the user the owner of the script
D)Set the SUID bit on the script
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following modes of operation exist in vi?

A)insert
B)type
C)search
D)remove
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following commands can be used to change the group owner of a file?

A)chown
B)chmod
C)chattr
D)attrch
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Which command to use for complete details of a command on the shell?

A)help
B)(?)
C)man
D)hlp
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
You need to change some settings on your Apache server. Which is the best tool to use for logging in remotely?

A)rsh
B)ssh
C)rlogin
D)telnet
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following runlevels will reboot the system?

A)0
B)2
C)4
D)6
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
You want to change the permissions on the file named "fifteen" so that root has all permissions and they are denied all other users. Which command should you use?

A)chmod fifteen 700
B)chmod 100 fifteen
C)chmod 700 fifteen
D)chmod fifteen 100
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Your PC is unable to boot off the Linux install CD. Which utility should be used to create an installation boot floppy?

A)fdisk
B)cp
C)dd
D)tar
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following below are true functionalities of shell?

A)Authenticates user
B)Interprets commands
C)Allocates time and memory to programs
D)Only a and b
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following below are true functionalities of Kernel?

A)Allocates time and memory to programs
B)Authenticates user
C)Interprets commands
D)All choices are correct
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
To implement new application on IBM z / 10. Which of the following options need to be considered if it to be implemented in Linux?

A)IBMz / OS outperforms Red Hat Linux in commercial workloads
B)IBMz / OS is more expensive, Linux is shareware
C)Red Hat Linux does not support all devices supported by IBMz / OS
D)z / OS is supported by IBM SupportLine, whereas Red Hat Linux can only be supported by Red Hat
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
A process is identified by a unique

A)Pid
B)Id
C)processed
D)proid
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which command reduces the size of a file?

A)pzip
B)gcat
C)pgcat
D)gzip
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.