Font size
WorksheetsLinux Commands
Total questions: 11
Worksheet time: 6mins
What is Your Section ?
1
2
3
4
5
Which of the following commands in Linux is used to display information about files and directories contained within the current working directory?
pwd
ls
cat
ps
Which of the Linux command-line commands listed below
is used for directory traversal?
cd
dir
ps
dig
A Linux command displaying an absolute path to (i.e. full
filename of) the current working directory is called:
mv
pwd
rm
dir
What is the name of a Linux command used for renaming files and directories?
rm
ps
mv
ls
Which of the Linux command-line commands listed below
is used for directory creation?
touch
cd
mkdir
create
Which of the following commands allows for moving one
level up in Linux directory tree?
cd -
cd ..
cd /
cd .
when creating soft link ,if the original file has been removed it won`t be useful any more ?
True
False
what is the Linux command segment used to append data to the "s.txt" file ?
echo "Hey Ubuntu "
echo "Hey Ubuntu " > s.txt
ls >> s.txt
echo "Hello " > s.txt
What is the name of a Linux command used for count the number of lines in a file ?
wc a.txt
count -l a.txt
wc -l a.txt
wc -w a.txt
what is the Linux command used for displaying the content of the file without opening it ?
ls a.txt
show a.txt
cat a.txt
touch a.txt
