NEW
Font size
Worksheetslinux commands
Total questions: 20
Worksheet time: 10mins
What is the name of a Linux command used for renaming files and directories?
rm
ps
mv
ls
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
Which Command Shows Permissions in Files
ls -l
ls -a
ls -h
ls -r
What single character can be used to refer to the active user's home directory?
^
$
~
there is none
If I am in the /home/tator directory and run the command cp Desktop/file1.txt Desktop/file2.txt I am using what type of path for the files?
Parent
Absolute
Relative
Cousin
What is the command to list hidden files & directory?
ls -l
ls -a
ls
None of these
Which of the following commands allows for moving one level up in Linux directory tree?
cd -
cd /
cd --
cd ~
Which permission amongst the following allows only groups to read and execute the file and denies all user as well as others to read, write and execute ?
rwxrwx---
rw-r-x--x
---r-x---
r-x-w-rwx
How to make a file executable the right way?
chmod 777
chmod a-x
chmod +x
chmod 400
Moves to the root directory
cd ~
cd \
cd /
cd ..
The following command can list out all the current active logins.
A - whoami
B - who am i
C - who
D - None of the above.
The mv command changes
Only the directory entry
Only the directory entry and i-node
Only the i-node number
None of the above
change permission of a file to rw-r--r-x?
chmod 546 file
chmod 642 file
chmod 645 file
chmod 655 file
which of the following command deletes directory along with its subdirectory and files?
rm -a
rm -rf
rmdir
rm
use of CAT command
allows you to create single
multiple files, view contents of file
redirect output in terminal or files
All Of the Above
chmod 744 ?
The first number stands for the user who is associated with the file
The second number is for the group associated with the file
The third number is associated with everyone else who is not a part of the user or group
All of these
