home.social

#linuxquiz — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #linuxquiz, aggregated by home.social.

  1. 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

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

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

  4. 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

  5. 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

  6. How do you create a 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.