linuxacad Flashcards
Run level 6 can be used to
Reboot the system
ln -s will
Create a symbolic link
The -t flag when passed to mkfs requires you to
Specify the file system type
The sticky bit, if enabled as a permission, has what effect?
Only the directory’s owner or file’s owner can rename or delete files (chmod +t filename or chmod 1000) instead of anybody with write permissions
Brackets [] when used as part of grep are known as a character class.
True
set -o noclobber enables noclobber on your shell. What function does this perform?
Prevents accidental overwrites of existing files.
echo “hello”»_space; file.txt
Will append hello at the end of file.txt
id:3:initdefault sets the default runlevel for the system at 3
True
What directory contains all the system’s primary unit configuration files?
/usr/lib/systemd/system
You need to rerun the configuration of a deb package much like the configuration that was run during installation. How would you do this?
Use the dpkg-reconfigure command
You need to create a shared workspace for your accounting department. Every time a user inside a directory creates a file, that file or sub-directory needs to inherit the parent directory’s group ID. How would you accomplish this?
Set the setgid flag on the parent directory (chmod g+s parent_directory)
Select the best answer: echo “test”»_space; test.txt && echo “mysheet”»_space; test.txt
The second echo command will only execute if the first echo command is successful
The term ‘UID’ is short for ‘User Identification’.
True
GPT-based partition tables can hold up to at least 128 primary partitions while MBR based partition tables can only hold four primary partitions.
True
While attempting to shut down the Apache service with “systemctl stop httpd” you notice that there are httpd processes that are refusing to shut down. How might you send a SIGTERM signal to try and gently stop the processes to all httpd processes?
pkill httpd