NEW
Font size
WorksheetsLinux Basics
Total questions: 16
Worksheet time: 6mins
The Kernel in Linux OS sits in between Hardware and application software
True
False
Following command can be used to list all the directory contents including hidden files :
ls -l
ls -a
ls -t
ls -r
Which command is used for creating folders in linux ?
touch
cat
mkdir
mv
Which command can be used to check Linux distribution ?
whoami
lsb_release
id
find
How to list all the groups a user belongs to ?
id
whoami
which group
sudo
Which of the following is not a Linux file permission?
Read
Write
Execute
Rename
Which command can be used to push the changes to Git branch ?
git commit
git remote
git add
git push
Git can host only public repositories:
True
False
Which command can be used to switch to one branch from another branch ?
git clone
git checkout
git remote
git add
Which directory in linux stores binary files which can only be run by root or sudo user ?
etc
bin
dev
sbin
Which directory should be used to mount the storage devices, either temporarily or permanently ?
/mnt
/etc
/opt
/srv
Which directory mainly stores log files related to system ?
/opt
/etc
/var
/tmp
Which command is used to delete an user in linux?
rm
rm-user
userdel
delete-user
Which amongst the following is not a valid shell in linux ?
bash
zsh
wsh
ksh
Which of the following permissions allow only group members to read and execute the file and denies everything for anyone else ?
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
