Deck 1: Linux Command Line Basics
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/19
Play
Full screen (f)
Deck 1: Linux Command Line Basics
1
Maximum how long can a Linux filename be?
A)128 bytes
B)255 bytes
C)32 bytes
D)64 bytes
A)128 bytes
B)255 bytes
C)32 bytes
D)64 bytes
255 bytes
2
Which command(s) is/are used to get help about a command in Linux?
A)info
B)man
C)None of these
D)Both a and b
A)info
B)man
C)None of these
D)Both a and b
info
3
Which command is used to get the kernel version in Linux?
A)uname -r
B)kernel
C)uname -n
D)uname -s
A)uname -r
B)kernel
C)uname -n
D)uname -s
uname -r
4
In Linux everything stored as a
A)file
B)directory
C)executables
D)None of the above
A)file
B)directory
C)executables
D)None of the above
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following command can be used as an alternative to echo command?
A)print
B)printr
C)printf
D)none of these
A)print
B)printr
C)printf
D)none of these
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
6
Which command is used see the list of users who are currently logged-in?
A)login
B)users
C)who
D)which
A)login
B)users
C)who
D)which
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
7
Which directory in Linux contains all the config file of the system?
A)/etc
B)/var
C)/lib
D)/bin
A)/etc
B)/var
C)/lib
D)/bin
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following command is used to count number of lines in a file?
A)wc -l
B)wc -c
C)wc -w
D)None of these
A)wc -l
B)wc -c
C)wc -w
D)None of these
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
9
Which command is used to copy entire directory?
A)cp -r
B)cp -i
C)cp
D)none of these
A)cp -r
B)cp -i
C)cp
D)none of these
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
10
Which special character should be avoided during naming a file?
A).(dot)
B)$
C)_(underscore)
D)-(Hyphen)
A).(dot)
B)$
C)_(underscore)
D)-(Hyphen)
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
11
Suppose I am in /etc directoy, after executing cd .(single dot), where am I now?
A)/etc
B)/(root)
C)/home
D)None of these
A)/etc
B)/(root)
C)/home
D)None of these
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
12
mv command can be used to ?
A)Move the file to different directory.
B)Renaming a file
C)Both a and b.
D)Only a.
A)Move the file to different directory.
B)Renaming a file
C)Both a and b.
D)Only a.
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
13
Which command is used to print the login shell of an user?
A)echo $SHELL
B)echo $LOGIN
C)echo $LSHELL
D)None of the Above
A)echo $SHELL
B)echo $LOGIN
C)echo $LSHELL
D)None of the Above
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
14
Which command is used to set terminal IO characteristic?
A)tty
B)ctty
C)ptty
D)sty
A)tty
B)ctty
C)ptty
D)sty
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
15
Which option of ls command used to view file inode number
A)-l
B)-o
C)-a
D)-i
A)-l
B)-o
C)-a
D)-i
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
16
What is the right command to save file and exit in Vim?
A):wq
B):a
C):q
D):q!
A):wq
B):a
C):q
D):q!
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following is not an editor?
A)expr
B)vi
C)emacs
D)ex
A)expr
B)vi
C)emacs
D)ex
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
18
In a date +format, you add the hour in 24 hours format using:
A)%f
B)%H
C)%F
D)%h
A)%f
B)%H
C)%F
D)%h
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
19
What command is used with vi editor to delete a single character?
A)x
B)y
C)a
D)None of the above
A)x
B)y
C)a
D)None of the above
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck