Deck 2: Linux Command

Full screen (f)
exit full mode
Question
Which of the following command can be used to rename a file in LINUX?

A)ren
B)mv
C)remove
D)change
Use Space or
up arrow
down arrow
to flip the card.
Question
What command is used to remove a file?

A)del
B)mv
C)rm
D)remove
Question
What command is used to display the top of the file?

A)grep
B)more
C)head
D)cat
Question
What command is used to sort the lines of data in a file in reverse order?

A)sort - r
B)st
C)sh
D)sort
Question
What command is used to print a file?

A)lp
B)pg
C)prn
D)print
Question
The command chmod 761 letter is equivalent to

A)chmod 4=7, g = 6, o = 1 letter
B)chmod a = 761 letter
C)chmod u = rwx, g = rw, o = x letter
D)chmod 167 letter
Question
What command is used with vi editor to move forward to the end of a word?

A)c
B)d
C)b
D)e
Question
The IP address are based on

A)16-bit addresses
B)32-bit addresses
C)64-bit addresses
D)8-bit addresses
Question
Which daemon is used for the Apache server?

A)apached
B)httpd
C)html
D)shttp
Question
Who founded the FSF?

A)Linus Torvalds
B)Richard Stallman
C)Bob Young
D)All of the above
Question
What command is used to copy a file?

A)tar
B)cpio
C)cp
D)copy
Question
What command is used to display your current working directory?

A)path
B)pwd
C)prompt $p$g
D)dir
Question
What command is used with vi editor to move the cursor to the left?

A)h
B)k
C)j
D)i
Question
Which of the following command is used to mount NFS filesystems?

A)nfsmount
B)knfsd
C)mount
D)All of the above
Question
You just added a new user, kara, to the system. What group is kara added to by default?

A)root
B)kara
C)group
D)user
Question
Which of the following command lists the last 10 lines of a file?

A)grep
B)tail
C)head
D)cat
Question
What command is used to terminate a process?

A)kill
B)cancel
C)haltsys
D)shutdown
Question
What command is used with vi editor to delete three words?

A)3$d
B)3 dw
C)3 x
D)3 dd
Question
What command is used to assign only read permission to all three categories of the file'letter'?

A)chmod u + r, g + r, o - x letter
B)chmod ugo = r letter
C)chmod a - rw letter
D)chmod go + r letter
Question
What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

A)chmod go + x, u - x letter
B)chmod g - x, uo + r letter
C)chmod go + r, u + x letter
D)chmod u - x, go + r letter
Question
What command is used to assign executable permission to the owner of the file named "letter"?

A)chmod ugo + x letter
B)chmod u + x letter
C)chmod u + w letter
D)chmod g + x letter
Question
What command is used to summarize the disk usage?

A)disk
B)du
C)fdisk
D)chkdsk
Question
What command is used to list the jobs currently in print queues?

A)lpq
B)lpr
C)lprm
D)lpc
Question
What is the following syntax used for command 2> / dev / null

A)Send the output of command to a file called / dev / null
B)Discard standard error entirely.
C)Append the output of command to a file called / dev / null
D)Send error messages from command to a file called / dev / null
Question
How do you delete your crontab entry?

A)crontab -d
B)crontab -e
C)crontab -r
D)del -crontab
Question
How do you create a crontab entry?

A)crontab --create
B)crontab -make
C)crontab -e
D)crontab -c
Question
How would you display running httpd processes?

A)ps -C httpd
B)ps -d httpd
C)ps -r httpd
D)ps -D httpd
Question
How would you avoid accidentally removing files?

A)rm -i
B)rm -chk
C)rm -a
D)rm -r
Question
How would you search for the string clothes at the end of the line in a file called shopping?

A)grep 'clothes#' shopping
B)grep 'clothes!' shopping
C)grep 'clothes$' shopping
D)grep 'clothes^' shopping
Question
Which runlevel allows full multiuser mode but with no graphical login manager?

A)Runlevel 1
B)Runlevel 2
C)Runlevel 3
D)Runlevel 0
Question
How would you sort a file called shopping on column 3?

A)sort -n 3 shopping
B)sort -k 3 shopping
C)sort -c 3 shopping
D)sort -c3 shopping
Question
How do you run a job that will continue running even if you are logged out?

A)hup.out command
B)hup command
C)jobc command
D)nohup command
Question
What is the following syntax used for? command >file1 2>file2

A)Send command's standard output to file1,and its standard error to file2
B)Send command's standard error to file1, and its standard output to file2
C)Send command's standard error to file1, and its standard input to file2
D)Send command's standard input to file1,and its standard output to file2
Question
What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

A)Send standard error to a file called &1
B)Append standard error to a file called &1
C)Send standard error to the same place as standard output
D)Send the output of the find command to / dev / null
Question
Which command is used to unmount a filesystem?

A)dmount
B)dismount
C)unmount
D)umount
Question
Which file determines what will be run at each runlevel?

A) / etc / init / runlevels
B) / etc / levels / fstab
C) / etc / fstab
D) / etc / inittab
Question
What is the full path for grub's configuration file

A) / boot / grub / lsof.conf
B) / boot / grub / menu.lst
C) / etc / grub / grub.conf
D) / etc / grub / grub.txt
Question
How do you display the kernel release?

A)kernel -r
B)uname -r
C)cat / proc / etc / kernel / release
D)cat / etc / config / kernel / release
Question
What does the permission string rwxr-xr-- correspond with in octal?

A)742
B)754
C)724
D)624
Question
How do you display your current crontab entry?

A)crontab -display
B)crontab -d
C)list --crontab
D)crontab -l
Question
How do you see hidden files in your home directory?

A)ls -h
B)ls -la
C)ls -hn
D)ls -R
Question
How do you direct the shell to execute a command in the background?

A)Put an & symbol at the end of the command line.
B)Key in fg followed by the command name.
C)Press Ctrl+c after you have keyed in the command.
D)Press Ctrl+d after you have keyed in the command.
Question
What keyboard combination can be used to exit the shell?

A)Ctrl+E
B)Ctrl+C
C)Ctrl+D
D)Ctrl+Z
Question
What is the purpose of the following operator? >>

A)It is used to send the output of one command so it becomes the input of a second command.
B)It is used to send both input and output to the same file.
C)It is used to overwrite the contents of a file.
D)It appends data to a file without overwriting it.
Question
How would you remove a directory that is not empty?

A)rm -r
B)rm -f
C)rmdir -f
D)rmdir -le
Question
To display information about the processor itself - display the contents of which file?

A) / bin / cpu
B) / dev / cpuinfo
C) / etc / cpu
D) / proc / cpuinfo
Question
To run date first, and then ls -l, which of the following is correct?

A)date $ ls -l
B)date ; ls -l
C)date - ls -l
D)date > ls -l
Question
Which file is the list of commands you recently entered stored in?

A).bashrc_history
B).history
C).bash_history
D).bash_list_history
Question
Which of the following runs the last command you entered?

A)~!
B)!~
C)!!
D)..
Question
What is the shortest command to take you to your home directory?

A)cd ~
B)cd $HOME
C)cd
D)cd/.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Linux Command
1
Which of the following command can be used to rename a file in LINUX?

A)ren
B)mv
C)remove
D)change
mv
2
What command is used to remove a file?

A)del
B)mv
C)rm
D)remove
rm
3
What command is used to display the top of the file?

A)grep
B)more
C)head
D)cat
head
4
What command is used to sort the lines of data in a file in reverse order?

A)sort - r
B)st
C)sh
D)sort
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
What command is used to print a file?

A)lp
B)pg
C)prn
D)print
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The command chmod 761 letter is equivalent to

A)chmod 4=7, g = 6, o = 1 letter
B)chmod a = 761 letter
C)chmod u = rwx, g = rw, o = x letter
D)chmod 167 letter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
What command is used with vi editor to move forward to the end of a word?

A)c
B)d
C)b
D)e
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
The IP address are based on

A)16-bit addresses
B)32-bit addresses
C)64-bit addresses
D)8-bit addresses
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Which daemon is used for the Apache server?

A)apached
B)httpd
C)html
D)shttp
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Who founded the FSF?

A)Linus Torvalds
B)Richard Stallman
C)Bob Young
D)All of the above
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
What command is used to copy a file?

A)tar
B)cpio
C)cp
D)copy
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
What command is used to display your current working directory?

A)path
B)pwd
C)prompt $p$g
D)dir
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
What command is used with vi editor to move the cursor to the left?

A)h
B)k
C)j
D)i
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following command is used to mount NFS filesystems?

A)nfsmount
B)knfsd
C)mount
D)All of the above
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
You just added a new user, kara, to the system. What group is kara added to by default?

A)root
B)kara
C)group
D)user
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following command lists the last 10 lines of a file?

A)grep
B)tail
C)head
D)cat
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
What command is used to terminate a process?

A)kill
B)cancel
C)haltsys
D)shutdown
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
What command is used with vi editor to delete three words?

A)3$d
B)3 dw
C)3 x
D)3 dd
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
What command is used to assign only read permission to all three categories of the file'letter'?

A)chmod u + r, g + r, o - x letter
B)chmod ugo = r letter
C)chmod a - rw letter
D)chmod go + r letter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

A)chmod go + x, u - x letter
B)chmod g - x, uo + r letter
C)chmod go + r, u + x letter
D)chmod u - x, go + r letter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
What command is used to assign executable permission to the owner of the file named "letter"?

A)chmod ugo + x letter
B)chmod u + x letter
C)chmod u + w letter
D)chmod g + x letter
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
What command is used to summarize the disk usage?

A)disk
B)du
C)fdisk
D)chkdsk
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
What command is used to list the jobs currently in print queues?

A)lpq
B)lpr
C)lprm
D)lpc
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
What is the following syntax used for command 2> / dev / null

A)Send the output of command to a file called / dev / null
B)Discard standard error entirely.
C)Append the output of command to a file called / dev / null
D)Send error messages from command to a file called / dev / null
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
How do you delete your crontab entry?

A)crontab -d
B)crontab -e
C)crontab -r
D)del -crontab
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
How do you create a crontab entry?

A)crontab --create
B)crontab -make
C)crontab -e
D)crontab -c
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
How would you display running httpd processes?

A)ps -C httpd
B)ps -d httpd
C)ps -r httpd
D)ps -D httpd
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
How would you avoid accidentally removing files?

A)rm -i
B)rm -chk
C)rm -a
D)rm -r
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
How would you search for the string clothes at the end of the line in a file called shopping?

A)grep 'clothes#' shopping
B)grep 'clothes!' shopping
C)grep 'clothes$' shopping
D)grep 'clothes^' shopping
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Which runlevel allows full multiuser mode but with no graphical login manager?

A)Runlevel 1
B)Runlevel 2
C)Runlevel 3
D)Runlevel 0
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
How would you sort a file called shopping on column 3?

A)sort -n 3 shopping
B)sort -k 3 shopping
C)sort -c 3 shopping
D)sort -c3 shopping
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
How do you run a job that will continue running even if you are logged out?

A)hup.out command
B)hup command
C)jobc command
D)nohup command
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
What is the following syntax used for? command >file1 2>file2

A)Send command's standard output to file1,and its standard error to file2
B)Send command's standard error to file1, and its standard output to file2
C)Send command's standard error to file1, and its standard input to file2
D)Send command's standard input to file1,and its standard output to file2
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

A)Send standard error to a file called &1
B)Append standard error to a file called &1
C)Send standard error to the same place as standard output
D)Send the output of the find command to / dev / null
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Which command is used to unmount a filesystem?

A)dmount
B)dismount
C)unmount
D)umount
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Which file determines what will be run at each runlevel?

A) / etc / init / runlevels
B) / etc / levels / fstab
C) / etc / fstab
D) / etc / inittab
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
What is the full path for grub's configuration file

A) / boot / grub / lsof.conf
B) / boot / grub / menu.lst
C) / etc / grub / grub.conf
D) / etc / grub / grub.txt
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
How do you display the kernel release?

A)kernel -r
B)uname -r
C)cat / proc / etc / kernel / release
D)cat / etc / config / kernel / release
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
What does the permission string rwxr-xr-- correspond with in octal?

A)742
B)754
C)724
D)624
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
How do you display your current crontab entry?

A)crontab -display
B)crontab -d
C)list --crontab
D)crontab -l
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
How do you see hidden files in your home directory?

A)ls -h
B)ls -la
C)ls -hn
D)ls -R
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
How do you direct the shell to execute a command in the background?

A)Put an & symbol at the end of the command line.
B)Key in fg followed by the command name.
C)Press Ctrl+c after you have keyed in the command.
D)Press Ctrl+d after you have keyed in the command.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
What keyboard combination can be used to exit the shell?

A)Ctrl+E
B)Ctrl+C
C)Ctrl+D
D)Ctrl+Z
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What is the purpose of the following operator? >>

A)It is used to send the output of one command so it becomes the input of a second command.
B)It is used to send both input and output to the same file.
C)It is used to overwrite the contents of a file.
D)It appends data to a file without overwriting it.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
How would you remove a directory that is not empty?

A)rm -r
B)rm -f
C)rmdir -f
D)rmdir -le
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
To display information about the processor itself - display the contents of which file?

A) / bin / cpu
B) / dev / cpuinfo
C) / etc / cpu
D) / proc / cpuinfo
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
To run date first, and then ls -l, which of the following is correct?

A)date $ ls -l
B)date ; ls -l
C)date - ls -l
D)date > ls -l
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Which file is the list of commands you recently entered stored in?

A).bashrc_history
B).history
C).bash_history
D).bash_list_history
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following runs the last command you entered?

A)~!
B)!~
C)!!
D)..
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What is the shortest command to take you to your home directory?

A)cd ~
B)cd $HOME
C)cd
D)cd/.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.