CNIT 340 exam 1
---------- no permissions
000 (binary permission)
---x--x--x execute for owner, group, and others
111 (binary permission)
--w--w--w- write for owner, group, and others
222 (binary permission)
--wx-wx-wx write and execute for owner, group, and others
333 (binary permission)
-r--r--r-- read for owner, group, and others
444 (binary permission)
-r-xr-xr-x read and execute for owner, group, and others
555 (binary permission)
-rw-rw-rw- read and write for owner, group, and others
666 (binary permission)
-rwx------ read, write, & execute only for owner
700 (binary permission)
-rwxr---- owner can read, write, and execute, group can only read, others have no permission
740 (binary permission)
-rwxrwx--- read, write, & execute for owner and group
770 (binary permission)
-rwxrwxrwx read, write, & execute for owner, group and others
777 (binary permission)
-All of the above should have their own partition
According to lecture, all of the following except ____ should have its own partition -/ -/home -/var -/etc -all of the above should have their own partition
True
By default, all function variables are global. TRUE or FALSE
", ', and \
Can be used to extend a line
syslog
Can notifiy admins if important files are changed
False
Compiling software from source is preferred because dependencies are automatically added in installation. TRUE or FALSE
lpr
adds a job to the print queue - BSD
root filesystem
before any filesystem can be used it must be mounted to the _____?
array variables
can hold multiple elements at a time
ps
command to list all running processes
kill
command used to kill a currently running process
SysV run level 4
currently not used - what is correct SysV run level?
SysV run level 2
multi-user mode (non-networked) - what is correct SysV run level?
True
UNIX is command line only. TRUE or FALSE
CUPS
UNIX printing approach supports windows printing clients
True
Unix has only one file system. TRUE or FALSE
1. boot loader 2. kernel starts init or systemd 3. check integrity of file systems 4. mount local disks 5. designates a paging area 6. cleans up filesystem 7. starts system server processes 8. initializes the network and launches network daemons
Unix system startup order
unenforce
Used to generate SELinux policy code from logging
^ or !
Used to negate a character match
-R
Used to perform actions on directories and subdirectories
-f
Used to skip confirmations
3
What SysV run level is multi-user.target run at
0
What SysV run level is poweroff.target ran at
1
What SysV run level is rescue.target ran at
/etc/passwd and /etc/group
What UNIX config file associates users with groups?
/etc/passwd
What UNIX config file contains the list of users?
IP and route
What command or file is used to set the default router of a UNIX system?
chkconfig <service> on
What is the Sys V equivalent of systemctl enable <service>
smb.conf
What is the main config file for SAMBA?
3
What is the most commonly used run more for servers
rwxr-xr--
What is the resulting permission sequence for the following UNIX command? chmod 754 /directory/file
2
What run level is multi-user mode (non-networked) ran at
make
What utility typically automates the process of installing software from source code?
grep
Which command returns lines from a file containing a search string?
/etc/hostname or /etc/hosts
Which file stores the Fully Qualified Domain Name (FQDN) for a UNIX system?
drwx------ tmiller tmiller
Which of the following is most reasonable set feor tmiller's home directory as shown in ls -l
Install via CUPS web interface & use lpadmin command
Which of the following is the preferred method to add a printer in CUPS
False
You should avoid meta-characters in filenames because you will not be able to access the file. TRUE or FALSE
lpq
lists jobs that are currently in the print queue - BSD
/lost+found
lost files directory
SysV run level 6
shutdown and reboot state - what is correct SysV run level?
SysV run level S
single user mode - what is correct SysV run level?
lp
submits a print job- SysV printing
SysV run level 1
system administration state - what is correct SysV run level?
/sbin
system binaries
/etc
system configuration informatoin
/tmp
temporary files
ln -s source target
this command creates symbolic links
-package managers/packages
this software installation technique includes yum and apt
find
used to find files
?
used to represent one of a single character
/home
user directories
False
user-defined variables do not need to start with a letter or underscore, and can start with numbers. TRUE or FALSE
compares directories
what does dircmp do?
/etc/fstab
where a list of filesystems to automatically mount is stored in a config file
/usr
where additionally installed software is located
stderr
where error messages are sent
/bin
where executables for basic operation are located
stdin
where input to the application is sourced
stdout
where output from the application is sourced
/var
where spooling, cache, and log files are located
systemctl
In CentOS 7 Linux, which command can be used to change the run level?
setenforce
Disables SELinux protections
\
Escapes a single character
'
Escapes multiple instances of all meta characters
False -umount
Media is unmounted via unmount command. TRUE or FALSE
chown
Ownership is changed with this command
$ and "
Preserves the meta character meaning
False. No daemons or networking
Single user mode has networking and daemons running. TRUE or FALSE
symbolic links
The files in the /etc/rc3.d directory are
True
The order is as important as the content of packet filter rules. TRUE or FALSE
-the individual owner -the group owner -everyone
The three owners of every file/directory are
chgrp
This can be used to change only the owning group
-package managers/packages -ports collection
This software installation technique automatically handles dependencies
-ports collection
This software installation technique is FreeBSD specific
compile from source
This software installation technique is natively supported by multiple UNIX versions (BSD, Linux, AIX, HPUX, etc.)
True
To have tail keep a file open so that updates to the file can be monitored use the -f option. TRUE or FALSE
SysV run level 5
firmware state - used for special hardware types of tasks (normally not used) - what is correct SysV run level?
False
if you know how to administer one flavor of unix you know how to administer them all. TRUE or FALSE
adm
owns the accounting files
bin
owns the executables for most user commands
sys
owns the system files
/dev
placeholders for devices
/proc
placeholders for running processes
SysV run level 0
power down state - system is halted
lpd
printer daemon -BSD
*
regex expression that matches zero or more of the preceding character
$
regex expression that represents the end of a line
SysV run level 3
remote filesharing state (Networking turned on) - what is correct SysV run level?
lqrm
removes jobs that are currently in the print queue - BSD