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