Linux Foundations Flashcards
Important facts regarding the Linux kernel(choose 3):
The kernel is found in /boot
Is based on the Mac OS
Provides GUI access for configuration
Allocates system resources to process
Should be spelled “Colonel”
Everything is a file
The kernel is found in /boot ✅
Allocates system resources to process ✅
Everything is a file ✅
Inside the /proc directory, you will find a separate directory for each instance of a running process.
True or False?
True ✅
True. The /proc directory in Linux contains a directory for each running process, named by its PID (Process ID). It’s a virtual filesystem providing an interface to kernel data structures
What is the function of /etc/skel/ directory?
It is a template directory for new users
It is a log of all current passwords to ensure there are no duplicates
It is the default directory for new users until they get other permissions
It is a log of who created which users for security accountability.
It is a template directory for new users ✅
Which command is used to make a shell variable to other executed programs.
env
export
export ✅
Ex: $ export greeting
$ export greeting=hey
Note: working with Global variable : To make a variable available to subprocesses, turn it form a local into a environment. The is doneby the command export. When invoked with the variable name, this is added to the shell’s environment:
Which of the following are stored in the /etc/passwd file (choose 4)?
username
expiration
user’s home directory
hashed password
UID (user ID)
default shell
username
user’s home directory
UID (user ID)
default shell
Select all of the files involved in Linux account configuration (choose 3).
/etc/shadow/
/etc/pwd
/etc/passwd
/var/run/accounts/
/var/log/system
/etc/group
The three files involved in Linux account configuration are:
/etc/shadow/
/etc/passwd
/etc/group
They manage user account information, including passwords and group memberships.
ex: $ cut -d “:” -f 1 /etc/passwd | sort -r | less
ex: $ wc /etc/passwd
What does this Linux command do:
cut -d “:” -f 1 /etc/passwd | sort -r | less
This command processes the /etc/passwd file in several stages:
cut -d “:” -f 1 /etc/passwd: Extracts the first field (username) from each line of the /etc/passwd file.
The -d “:” option specifies that fields are separated by colons.
sort -r: Sorts the usernames in reverse alphabetical order.
less: Displays the sorted usernames in a paginated view, allowing for easy navigation.
Which file on a Linux a system sets the maximum number of days before a password must be changed?
/etc/users
/etc/passwd
/etc/group
/etc/shadow
/etc/shadow ✅
The sticky bit permission…
prevents others from overwriting files they don’t own in common directories
changes the group ownership of existing files in a directory.
sets the group ownership of any new file created in a directory.
prevents other from removing files they don’t own from a common directory.
prevents other from removing files they don’t own from a common directory. ✅
$ls -ld Sample Directory/
drqqr-xr-t 2 carol carol 4096 Dec 28 18:46Sample_Directory/
ex:$ cd~
ex:$ sudo deluser jimbo
ex:$ ls -l 1*
Use the command to remove a directory (xyz) and all files within it.
rmdir xyz
rm -r xyz
rm * xyz
del . \xyz
rm -r xyz ✅
Which commands allows a file (xyz.sh) to execute (select 2)?
chmod a+w xyz.sh
chmod 755 xyz.sh
chown 777 xyz.sh
chmod +x xyz.sh
chmod 755 xyz.sh
chmod +x xyz.sh
What are the difference between a private web browser window and a regular web browser window? (Choose three.)
Private web browser windows do not keep records in the browser history.
Private web browser windows do not send regular stored cookies.
Private web browser windows do not store cookies persistently.
Private web browser windows do not allow printing or storing websites.
Private web browser windows do not keep records in the browser history. ✅
Private web browser windows do not send regular stored cookies.✅
Private web browser windows do not store cookies persistently. ✅
Use the following to install “tree” on a Ubuntu system.
sudo apt-install tree
sudo apt-get install tree
setup install tree /s
sudo install tree
sudo apt-get install tree ✅
This type of DNS record is the opposite of an “A” record
PTR
WWW
CNAME
MX
PTR ✅
ex:Total978 (kernel 0)
TCP: 4 9estab 0, closed 0, orphaned 0, synrecv 0, timewait 0/0), port 0
Transport Total—— IP —–IPv6
*——–0————- - ———— - —-
RAW–1———–0————–1——
Use this wildcard to replace a single character (Ex: is_inux)
#
*
?
%
? ✅
Multiple users can have the default group ID (GID).
True
False
True
Use the following command to rename a file in Linux
mv
cp
ren
rename
mv
Where did the kernel originate?
It originated at Apple for macOS.
Linus Torvalds created it.
It originated at Microsoft for Windows.
It originated at IBM.
Linus Torvalds created it. ✅
Which of the following are Linux desktop environments? (Choose all that apply.)
A. GTK+
B. GNOME
C. KDE Plasma
D. Evolution
E. Xfce
GNOME ✅
KDE Plasma ✅
Xfce ✅
If you want to enable one Linux computer to access files stored on another Linux
computer’s hard disk, which of the following network protocols is the best choice?
A. SMTP
B. NFS
C. PHP
D. DNS
E. DHCP
NFS (Network File System) ✅
NFS is specifically designed for file sharing over a network.
In which of the following languages was most of the Linux kernel written?
A. Bash shell script
B. Java
C. C
D. C++
E. Perl
C ✅
This language provides the low-level access to memory and system resources necessary for a robust operating system kernel.
True or false: OpenOffice.org forked from Calligra.
False ✅
OpenOffice.org was developed by Sun Microsystems
KOffice was developed by Calligra for KDE desktop envir.
True or false: Python is generally implemented as an interpreted language.
True ✅
A Linux server that handles the SMB/CIFS protocol normally runs the software.
A. ProFTPD
B. telnetd
C. named
D. Dovecot
E. Samba
Samba ✅
Samba is the software that allows Linux servers to handle SMB/CIFS protocols, facilitating file and print services to Windows clients.