Answer: In Linux, the primary command used to list directory contents is ls. However, the dir command can also be used to achieve similar results.

#linux #linuxquiz #opendirectory #commandline

Quiz Time!

Which command is used to list directory contents in Linux?

#linux #linuxquiz

ls
88.4%
dir
7%
list
2.3%
show
2.3%
Poll ended at .

Which device file is associated with the #virtual #console that is opened after using the Alt-F6 key sequence?
a) /dev/console6
b) /dev/tty6
c) /dev/vty6
d) /dev/pts/6

#Linux #quiz #rhel #redhat #ex200 #gnulinux #rhcsa #LinuxQuiz #sysadmin #tty #vty #pts

You want to grep the #log file for #SELinux log messages. Which of the following strings should you use grep on?
a) selinux
b) deny
c) violation
d) avc

#Linux #quiz #rhel #redhat #ex200 #gnulinux #rhcsa #LinuxQuiz #sysadmin

When a system is started, where does it initially get the system time?

a) NTP
b) Software time
c) The hardware clock
d) Network time

#Linux #quiz #rhel #redhat #ex200 #gnulinux #rhcsa #LinuxQuiz #sysadmin #time #ntp

You want to log in to an SMB share. Which of the following commands shows correct syntax for doing so?

a) mount -o username=sambauser1 //server/share /somewhere
b) mount -o uname=sambauser1 //server/share /somewhere
c) mount sambauser1@//server/share /somewhere
d) mount -o username=sambauser1@//server/share /somewhere

#Linux #quiz #rhel #redhat #ex200 #gnulinux #rhcsa #LinuxQuiz #sysadmin #smb #cifs #samba #mount

How do you create a #cron job for a specific user?

a) Log in as that user and type crontab -e to open the cron editor.
b) Open the crontab file in the user home directory and add what you want to add.
c) As root, type crontab -e username.
d) As root, type crontab -u username -e.

#Linux #quiz #crontab #rhel #redhat #ex200 #gnulinux #rhcsa #LinuxQuiz