Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[40 Question] Skill Test Fundamental Linux Administration

Today I Will Give You 40 Question To Test Your Skill In Linux 🎉

🤩 🤩

Question 1 of 40
A file in /tmp must be relocated to /user/u101, and renamed at the same time. Which command should be used?
A) move /tmp/file1 /user/u101/file2
B) move file1 /user/u101
C) mv /tmp/file1 /user/u101/file2
D) mv /tmp/file1 /user/u101/file1


Question 2 of 40
A script needs to be readable by its owner, all users, and all groups. The file also needs to be writable and executable by its owner. Which command will properly set these permissions?
A) chown 734 script.pl
B) chmod 641 script.pl
C) chmod 634 script.pl
D) chmod 744 script.pl


Question 3 of 40
Which of these file-systems supports journaling? (Select all that apply)
A) ext2
B) JFS
C) ext3
D) HFS


Question 4 of 40
An administrator wants to create a message which will be seen by all users connecting to the server using command-line tools. Which file should be edited?
A) /etc/issue
B) /etc/msg.conf
C) /etc/motd
D) /usr/msg.conf


Question 5 of 40
Which features are supported by GRUB?
A) Text or GUI interface, multiple OS selection, and kernel selection
B) GUI interface only, single OS selection, and multiple kernel selection
C) Windows support, and single kernel selection
D) Remote administration, and GUI interface


Question 6 of 40
Which command should be used to display the mounted filesystems in an easy to read format?
A) du -s /*
B) df -k
C) du -hk
D) df -h


Question 7 of 40
Which file must be edited in order to begin using DNS in addition to a local hosts file?
A) /etc/nsswitch.conf
B) /etc/resolve.conf
C) /usr/local/dns.conf
D) /etc/dns.conf


Question 8 of 40
Some users have too much data in their default personal directories. Which command will display the size these directories?
A) du -dk /users
B) df -sk /users/

C) du -sk /home/*
D) df -sh /home


Question 9 of 40
Which is the correct definition for GRUB?
A) GNU Revised Uploaded Bootloader
B) GRand Uploaded Bootloader
C) GNU Revised Unified Bootloader
D) GRand Unified Bootloader


Question 10 of 40
An admin wants to create a new file named “newfile”, which contains the text “test_file = /home/user1/script.pl”. Which command is the most efficient?
A) echo “test_file = /home/user1/script.pl” > newfile
B) touch newfile; cat “test_file = /home/user1/script.pl” > newfile
C) cat “test_file = /home/user1/script.pl” > newfile
D) touch newfile; echo “test_file = /home/user1/script.pl”


Question 11 of 40
Which command will display the current run level? (Choose two answers)
A) runmode -l
B) runlevel
C) who
D) who -r


Question 12 of 40
What does the /boot directory contain?
A) System configuration files
B) Device drivers and bootloader
C) superuser binaries and regular user binaries
D) kernel and bootloader


Question 13 of 40
Which command will display the details and names of all directories that begin with “revised“?
A) ls -l revised*
B) ls -lia ./revised*
C) ls -ld revised*
D) ls -la ./revised*


Question 14 of 40
All files and folders in a user directory need to be readable by the owner. Which command is the most efficient method to accomplish this task?
A) chmod -r 444 /user/x780/*
B) chown -r 444 /user/x780
C) chmod -R o=r /user/x780
D) chmod -R u=r /user/x780


Question 15 of 40
An admin wants to reboot a server into single-user mode without intervention. Which file should be edited?
A) /etc/default
B) /etc/sysconfig
C) /etc/aboot.conf
D) /etc/inittab


Question 16 of 40
Which command will display a detailed list of files, including those that are hidden?
A) ls -la
B) ls -d
C) ls -i
D) ll


Question 17 of 40
Which file must be edited to modify the search order of defined nameservers?
A) /etc/nsswitch.conf
B) /etc/resolv.conf
C) /etc/resolvconf
D) /etc/nameservers.conf


Question 18 of 40
Which file must be edited to modify the filesystems that will be mounted automatically upon booting?
A) /etc/mount
B) /etc/fstab
C) /etc/filesystems
D) /etc/inittab


Question 19 of 40
Which directory contains system information and process information?
A) /run
B) /proc
C) /root
D) /


Question 20 of 40
An admin wants to change the run level from single-user to multi-user with a GUI desktop. Which command should be run?
A) init 3
B) telinit 3
C) init 4
D) telinit 5

Onther 20 Question In The Comment 🤭


Question 21 of 40
Which command would create two new directories and two new sub-directories?
A) makedir newdir1/sub-newdir1 newdir2/sub-newdir2
B) mkdir -s newdir1/sub-newdir1 newdir2/sub-newdir2
C) mkdir -p newdir1/sub-newdir1 newdir2/sub-newdir2
D) makedir -p newdir1/sub-newdir1 newdir2/sub-newdir2


Question 22 of 40
Which entry below will create and enable a swap partition on /dev/sda2?
A) swap-add /dev/sda2; swap-stat on /dev/sda2
B) makeswap /dev/sda2; addswap /dev/sda2
C) mkswap /dev/sda2; swapon /dev/sda2
D) swap-set /dev/sda2; add-swap /dev/sda2


Question 23 of 40
Which details are displayed by the “uname -a” command? (Choose three answers) (Select all that apply)
A) Kernel name
B) User ID
C) Kernel release
D) Group ID
E) Kernel version
F) Last reboot timestamp


Question 24 of 40
Which command should be used when a user needs to run the “apt-get update” command as root?
A) su –c apt-get update
B) sudo -e apt-get update
C) su -e apt-get update
D) sudo apt-get update


Question 25 of 40
Which of the following is the correct device node for the third partition on a SCSI boot disk?
A) /dev/sd0a2
B) /dev/hda2
C) /dev/sda2
D) /dev/hd02


Question 26 of 40
How do the contents of /bin and /sbin differ?
A) /bin contains user binaries, whereas /sbin contains superuser binaries
B) /bin contains regular binaries, whereas /sbin contains root binaries
C) /bin contains programs needed for single-user mode, whereas /sbin contains programs needed for multi-user mode
D) /bin contains device driver configuration files, whereas /sbin contains network device drivers


Question 27 of 40
Which command would be best for relocating /user/u210/dir1 to /user/c340?
A) mv /user/u210/dir1 /user/c340
B) mv /user/u210/dir1/*.* /user/c340/*
C) move -r /user/u210/dir1 /user/c340/*
D) move -R /user/u210/dir1/* /user/c340


Question 28 of 40
Which strategy is typically used for sizing the swap file for a server?
A) 100% to 200% of RAM size
B) 50% to 100% of RAM size
C) 25% to 75% of RAM size
D) 50% of RAM size


Question 29 of 40
If the / filesystem runs out of space, the system will likely crash. How can this be avoided?
A) Create a /tmp directory to deal with overflow from /
B) Create a /tmp partition to deal with overflow from /
C) Create a / partition to deal with overflow
D) Create a /var/tmp directory to deal with overflow from /


Question 30 of 40
Which command should be used to copy all files and directories from /usr/local/apps to /apps?
A) copy /usr/local/apps/* /apps/*
B) copy -R /usr/local/apps/* /apps
C) cp -r /usr/local/apps/* /apps/*
D) cp -R /usr/local/apps/* /apps


Question 31 of 40
Which features are provided by journaling file-systems?
A) Improves performance, but increases fragmentation
B) Reduces fragmentation, but increases restarts
C) Accelerates performance, reduces fragmentation, reduces chance of file corruption as a result of sudden shutdown or system freeze
D) Simplifies restarts, but increases fragmentation


Question 32 of 40
An admin needs to relocate several types of files to the /var/source directory. Which is the best command to accomplish this task?
A) mv file1.h file2.pl file3.c /var/source
B) move file1.h file2.pl file3.c /var/source
C) move file* /var/source
D) mv -f file* /var/source


Question 33 of 40
Which statements are TRUE regarding mountpoints? (Choose three answers) (Select all that apply)
A) Must use an empty directory
B) It becomes the root directory for the mounted filesystem
C) May be used manually or upon boot
D) Can be used to hide information
E) Only supported on EXT3 and EXT4 filesystems
F) Only supported on journaling filesystems


Question 34 of 40
A swap partition will typically get created during the installation of Linux. What is the purpose of the swap partition? (Select all that apply)
A) It functions as main memory
B) It functions as temporary storage
C) If functions as virtual memory
D) It functions as permanent storage


Question 35 of 40
Which command should be used to copy all text files from /tmp to the current directory?
A) copy /tmp/*.txt
B) cp /tmp/*.txt ./*.txt
C) cp /tmp/*.txt .
D) copy /tmp/*.txt .


Question 36 of 40
If your boot disk was configured with a MBR, how many primary partitions are permitted?
A) 1
B) 2
C) 3
D) 4


Question 37 of 40
Why would an admin configure a new server with GPT instead of a MBR? (Select all that apply)
A) Supports partitions larger than 2TB
B) Unlimited primary partitions
C) No distinction between primary, extended, or logical partitions
D) LVM is only supported on GPT disks


Question 38 of 40
Which partition editor is typically the default for Linux servers?
A) fdisk
B) parted
C) gparted
D) vi


Question 39 of 40
Why are most of the files in the /proc filesystem zero bytes in size? (Select all that apply)
A) /proc is a pseudo-filesystem which only exists in memory
B) Objects in /proc are not user accessible
C) Objects in /proc are used to query the status of various kernel structures
D) /proc is a virtual-filesystem and doesn’t contain real files


Question 40 of 40
Which is the easiest method to create several directories under the current directory?
A) mkdir ./dir1 ./dir2 ./dir3
B) makedir dir1; mkdir dir2; mkdir dir3
C) mkdir dir1, dir2, dir3
D) makedir dir1/dir2/dir3

GOOD BYE 🎉
Can you please post an answer key so I can grade my answers? Researching everything is a bit inconvenient lol.
(Dec 9, 2016 06:16 PM)memory Wrote:  Can you please post an answer key so I can grade my answers? Researching everything is a bit inconvenient lol.

Don't think of the questions as a test of what you know. Use the test to see what is important to know and why. Answer each question by researching it. The more often you go over the same problem or guide the better you will learn it.
Lol I remember when I was in 5th grade.
XMPP: pm me
(Dec 11, 2016 09:32 AM)Betty Blue Wrote:  Lol I remember when I was in 5th grade.

Some of those questions are retarded. For example;

Quote:Question 1 of 40
A file in /tmp must be relocated to /user/u101, and renamed at the same time. Which command should be used?
A) move /tmp/file1 /user/u101/file2
B) move file1 /user/u101
C) mv /tmp/file1 /user/u101/file2
D) mv /tmp/file1 /user/u101/file1

Which entry below will create and enable a swap partition on /dev/sda2?
A) swap-add /dev/sda2; swap-stat on /dev/sda2
B) makeswap /dev/sda2; addswap /dev/sda2
C) mkswap /dev/sda2; swapon /dev/sda2
D) swap-set /dev/sda2; add-swap /dev/sda2

Question 27 of 40
Which command would be best for relocating /user/u210/dir1 to /user/c340?
A) mv /user/u210/dir1 /user/c340
B) mv /user/u210/dir1/*.* /user/c340/*
C) move -r /user/u210/dir1 /user/c340/*
D) move -R /user/u210/dir1/* /user/c340

Question 18 of 40
Which file must be edited to modify the filesystems that will be mounted automatically upon booting?
A) /etc/mount
B) /etc/fstab
C) /etc/filesystems
D) /etc/inittab

Question 15 of 40
An admin wants to reboot a server into single-user mode without intervention. Which file should be edited?
A) /etc/default
B) /etc/sysconfig
C) /etc/aboot.conf
D) /etc/inittab


If you, or anyone hasn't noticed already, with all those commands is a pattern.
Make Dir => mkdir
Copy => cp

If you see it and notice it. It becomes rather easy to figure all of those questions out by process of elimination even if you haven't heard of the command. Even file names have the principle. mkfs is a prime example as well. mkfs.ext2, mkfs.fat, mkfs.btrfs and so on.


Might add this

Quote:Question 28 of 40
Which strategy is typically used for sizing the swap file for a server?
A) 100% to 200% of RAM size
B) 50% to 100% of RAM size
C) 25% to 75% of RAM size
D) 50% of RAM size


Who the fuck wrote that ?
The question is stupid in every sense of everything. Everyone that knows what SWAP is would understand why this question is retarded.
Can you please post an answer key??


Possibly Related Threads...
Thread / Author Replies Views Last Post
by jasonnixOct 27, 2023 05:00 AM 1 154 Oct 27, 2023 05:00 AM
Last Post: Betty Blue
by mindswordFeb 14, 2014 05:47 PM 10 388 Feb 14, 2014 05:47 PM
Last Post: Zerxes
by LinuxUserApr 16, 2013 08:43 AM 4 131 Apr 16, 2013 08:43 AM
Last Post: LinuxUser