Deck 1: Linux Command Line Basics

Full screen (f)
exit full mode
Question
Maximum how long can a Linux filename be?

A)128 bytes
B)255 bytes
C)32 bytes
D)64 bytes
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
Which command is used to get the kernel version in Linux?

A)uname -r
B)kernel
C)uname -n
D)uname -s
Question
In Linux everything stored as a

A)file
B)directory
C)executables
D)None of the above
Question
Which of the following command can be used as an alternative to echo command?

A)print
B)printr
C)printf
D)none of these
Question
Which command is used see the list of users who are currently logged-in?

A)login
B)users
C)who
D)which
Question
Which directory in Linux contains all the config file of the system?

A)/etc
B)/var
C)/lib
D)/bin
Question
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
Question
Which command is used to copy entire directory?

A)cp -r
B)cp -i
C)cp
D)none of these
Question
Which special character should be avoided during naming a file?

A).(dot)
B)$
C)_(underscore)
D)-(Hyphen)
Question
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
Question
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.
Question
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
Question
Which command is used to set terminal IO characteristic?

A)tty
B)ctty
C)ptty
D)sty
Question
Which option of ls command used to view file inode number

A)-l
B)-o
C)-a
D)-i
Question
What is the right command to save file and exit in Vim?

A):wq
B):a
C):q
D):q!
Question
Which of the following is not an editor?

A)expr
B)vi
C)emacs
D)ex
Question
In a date +format, you add the hour in 24 hours format using:

A)%f
B)%H
C)%F
D)%h
Question
What command is used with vi editor to delete a single character?

A)x
B)y
C)a
D)None of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/19
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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
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
info
3
Which command is used to get the kernel version in Linux?

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
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
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
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
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
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
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)
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
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.
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
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
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
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!
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
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
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
Unlock Deck
Unlock for access to all 19 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 19 flashcards in this deck.