OSA TEST
Change password for current user or set new password? [linux]
passwd
password
passw
pass
What is the command to display current login user?
whodis
whoami
id
user
What is the correct command that displays a message with a string?
echo hello world
echo "Hello"
What is the correct command that displays a message with a string?
echo Hello $(whoami)
echo Hello whoami
echo "Hello $(whoami)"
What is the command to login as superuser?
su -
su superuser
su - superuser
What is the command to display current directory?
dir
pwd
cudir
What is the command to display the content of the current directory in long format?
pwd ls
ls - s
ls -l
What is the command to display content of current directory?
ls -cu
ls
ls -l
ls -s
What is the command to display files with the filename starting with "red"?
ls -red
ls -display.red
ls -l red
ls .red
What is the command to display content of root directory?
ls -root
ls -l /
ls -su
ls -superuser
What is the command to display all hidden files?
ls -hiddfiles
ls .*
ls .hidden
ls -l /
ls -a
What is the command to create a directory?
mkdir
mkdirectory
makedir
createdir
What is the command to enter a directory?
seldir
etdir
cs dir
cd dir
What is the command to change to home directory?
cd ~
ls -home
gohome
cd home
What is the command to change to root directory?
ls root
cd /
chmod -root
ch -root
What is the command to go back to previous working directory?
return
exit
cd -
cd -return
What is the command to create a file and content in a directory
echo hello world hello.txt
echo "hello world" hello.txt
echo 'hello world' > hello.txt
echo 'hello world' hello.txt
What is the command to display the contents of a file?
open -hello.txt
ls -hello.txt
chmod -hello.txt
cat hello.txt
What is the command to move a file within a directory into another directory?
mv hello.txt dir2
move hello.txt > dir2
mv hello.txt > dir2
move hello.txt dir2
What is the command to list all files in subdirectories?
list -all
ls -Rl file1
ls -all
cat -all
What is the command to delete a file?
del hello.txt
d -hello.txt
rm hello.txt
rm -hello.txt
What is the command to copy file to another file?
copy hello.txt > hi.txt
cp hello.txt hi.txt
copy hello.txt hi.txt
cp hello.txt > hi.txt
What is the command to delete a directory?
deldir
mrdir
rm directory
rmdir
What is the command to delete a directory with all its contents?
deldir -all
rmdir -all
rm -r
rmdir -r
What is the command to return back from root to normal account?
su -
exit
close
/home
What is the command to to add user?
ad -user2
adduser user2
cr -user2
cr user2
What is the command to set password for added user?
pass user2
passwd user2
pw -user2
pw user2
{"name":"OSA TEST", "url":"https://www.quiz-maker.com/QQVK9Z0T0","txt":"Name:, Change password for current user or set new password? [linux], What is the command to display current login user?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}