Flashcards in linuxacad Deck (20):
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.
set -o noclobber enables noclobber on your shell. What function does this perform?
Prevents accidental overwrites of existing files.
echo "hello" >> file.txt
Will append hello at the end of file.txt
id:3:initdefault sets the default runlevel for the system at 3
What directory contains all the system's primary unit configuration files?
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" >> test.txt && echo "mysheet" >> test.txt
The second echo command will only execute if the first echo command is successful
The term 'UID' is short for 'User Identification'.
GPT-based partition tables can hold up to at least 128 primary partitions while MBR based partition tables can only hold four primary partitions.
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?
While in vi command mode you type 3yy what is the result?
Will yank 3 lines starting with the line your cursor is on.
How would you extract information about the boot process?
Use the 'dmesg' command
dpkg is a package manager used for installing .deb packages on Debian/Ubuntu systems.
If you want a command or process to continue running after exiting the system, which of these would you add to the front of the command?