IT1510 Midterm II

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

/etc/cron.allow

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

/tmp

If I use mirroring to increase fault tolerance in my disk subsystem and I use one 1 TB drive and one 1.5 TB drive my total storage capacity that is protected from failure is ___. a. 1 TB b. 1.5 TB c. Mirroring does not increase fault tolerance. d. 3.5 TB

a. 1 TB

Which runlevels use a command-line user interface by default? (Choose two.) a. 2 b. 5 c. 3 d. 4 e. 0

a. 2 c. 3

How many terminal windows will be opened by this script? i="0" while [ $i -lt 4 ] do xterm & i=$[$i+1] done a. 4 b. impossible to determine c. 5 d. 3

a. 4

If I have the following script: #!/bin/bash x=1 while [ $x -le 5 ] do .....echo "Welcome $x times" .....x=$(( $x + 1 )) done How many times will I be welcomed a. 5 b. 6 c. 1 d. 3

a. 5

A user cannot log on. Their password field in /etc/shadow contains !!<encrypted_password>. What action would fix this problem? (Choose two.) a. An administrator should execute the command passwd -u <user_name>. b. The user should change their password. c. An administrator should execute the command chage -u <user_name>. d. An administrator should execute the command usermod -U <user_name>.

a. An administrator should execute the command passwd -u <user_name>. d. An administrator should execute the command usermod -U <user_name>.

How is a display manager started? a. It is started like any other system service by the init system. b. It is started automatically when a X11 user logs in to the system console. c. It is started by inetd when a remote hosts connects to the X11 port. d. It is started by a user using the command startx.

a. It is started like any other system service by the init system.

What is the purpose of the Bash built-in export command? a. It sets up environment variables for applications. b. It allows disks to be mounted remotely. c. It shares NFS partitions for use by other systems on the network. d. It makes the command history available to subshells. e. It runs a command as a process in a subshell.

a. It sets up environment variables for applications.

Which of these scripts will be run first during shutdown? a. K25httpd b. K50sshd c. S50saned d. S90binfmt-support

a. K25httpd

What is ext4? a. Latest linux filesystem type b. An extended file system used to work with windows files c. 4 digit extension used in linux files d. An external file system

a. Latest linux filesystem type

Which of the following symbols is used as prefix to access the value of variables in scripting a. $ b. # c. ^ d. &

a. $

Where do need to go to make a partition automatically mount on booting a. /etc/fstab b. /dev/filesystem c. /dev/mount d. mount point

a. /etc/fstab

Where do I look for the shadow file a. /etc/shadow b. /dev/shadow c. /shadow d. /root/shadow

a. /etc/shadow

In compliance with the FHS, in which of the directories are man pages found? a. /usr/share/man b. /usr/doc c. /opt/man d. /var/man e. /var/pkg/man

a. /usr/share/man

Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ? a. 0027 b. 0038 c. 0017 d. 0640

a. 0027

Which interface runs with a native transfer rate of 16 Gbit/s - 1969 MB/s? a. SATA 3.2 b. SATA 1 c. SATA 2 d. No interface runs that fast

a. SATA 3.2

Which of the following memory does not use a disk? a. SSD b. Hard c. MO d. CD

a. SSD

A file named myapp has a mode of 755. If dnelson does not own this file and is not a member of the group that owns the file, what can she do with it? a. She can run the file. b. She can change ownership of the file. c. She can open the file, make changes, and save the file. d. She can change the group that owns the file.

a. She can run the file.

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.) a. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup. b. Additional rules for udev can be created by adding them to /etc/udev/rules.d/. c. Entries for all possible devices get created on boot even if those devices are not connected. d. When using udev, it is not possible to create block or character devices in /dev/ using mknod. e. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

a. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup. b. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

Assume that two variables named x and y have numeric values. Which of the following is the correct way to compare whether the value of x is less than y? a. [ $x -lt $y ] b. [ $x > $y ] c. [ $x -lessthan $y ] d. [ $x < $y ]

a. [ $x -lt $y ]

Where would the list of all login users be found? a. \etc\passwd b. \etc\users c. \etc\logins d. \var\spool\usrs

a. \etc\passwd

Which command will add user jane to the group developers? a. adduser jane developers b. chgrp jane developers c. add -group developers -user jane d. vigroup

a. adduser jane developers

In a shell script, you need to prompt the user to select from one of seven different options presented with the echo command. Which control structure would best evaluate the user's input and run the appropriate set of commands? a. case b. An until loop c. A for loop d. A while loop e. if/then/else

a. case

Which commands will change your current working directory to your home directory? (Select two.) a. cd b. echo $HOME c. $HOME d. cd ~

a. cd d. cd ~

I am tired of getting permission denied errors and want to give everybody every permission what command should I use a. chmod 777 filename b. chmod all filename c. chmod 444 filename d. chmod 000 filename

a. chmod 777 filename

Fred has taken over for Bill at work and so all Bill's files need to be given to Fred. What command would transfer control of the files to Fred. a. chown fred * b. chown bill fred c. xfer * fred d. chown * fred e. adduser fred bill f. xfer bill fred

a. chown fred *

Which command can be used to create an image of the /dev/sda2 partition in the /mnt/usb/volback file? a. dd if=/dev/sda2 of=/mnt/usb/volback b. cp /dev/sda2 /mnt/usb/volback c. dd if=/mnt/usb/volback of=/dev/sda2 d. dd if=/dev/sda of=/mnt/usb/volback

a. dd if=/dev/sda2 of=/mnt/usb/volback

Which of the following commands prints the exit value of the most recently executed program in Bash? a. echo $? b. echo $exit c. echo $& d. echo $# e. echo $status

a. echo $?

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.) a. ext3 b. JFS c. ext2 d. XFS e. procfs

a. ext3 c. ext2

You need to use fdisk to create an MBR partition for the fourth SATA hard drive in your system. Which is the correct command to do this? a. fdisk /dev/sdd b. fdisk /dev/hdd d. fdisk /dev/sda4 d. fdisk /dev/sdb2

a. fdisk /dev/sdd

What commands would find files filea, fileb, and filec in student1's home directory and remove them, but require confirmation before removing them? (Select two.) a. find /student1 -name "file[a-c] | xargs -p rm b. find /student1 -name "file[a-c] | xargs rm c. find /student1 -name "file[a-c] -ok rm {} \; d. find /student1 -name "file[a-c] -exec rm {} \;

a. find /student1 -name "file[a-c] | xargs -p rm c. find /student1 -name "file[a-c] -ok rm {} \;

When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created? a. foo bar b. bar c. cat d. tee bar e. foo

a. foo bar

I want to tweak the disks for maximum speed. What low-level tool to view and sets disk and interface parameters should I use? a. hdparm b. dd c. cfdsk d. gparted

a. hdparm

you wish to purchase a high performance mechanical hard disk. You would look for a ______ seek time number and a _____ disk rotation speed (RPM) number. a. lower, higher b. lower, lower c. higher, higher d. higher, lower

a. lower, higher

Which line of the systlog(or rsyslog) file would direct just the mail notice errors to the file /var/log/mail.notice? a. mail.=notice /var/log/mail.notice b. mail.* /var/log/mail.notice c. notice.mail /var/log/mail.notice d. mail.notice /var/log/mail.notice

a. mail.=notice /var/log/mail.notice

You created an ext4 filesystem on the first partition on the second SCSI hard disk in your system and now need to mount it in /mnt/extraspace in read-write mode. Which commands will do this? (Choose two.) a. mount -a /dev/sdb1 /mnt/extraspace/ b. mount -t ext /dev/sdb1 /mnt/extraspace/ c. mount -t ext4 /dev/sda1 /mnt/extraspace/ d. mount -t ext4 -o ro /dev/sdb1 /mnt/extraspace/ e. mount -t ext4 /dev/sdb1 /mnt/extraspace/

a. mount -a /dev/sdb1 /mnt/extraspace/ e. mount -t ext4 /dev/sdb1 /mnt/extraspace/

What commands do you use to mount/unmount filesystems to a mount point? a. mount and umount b. mount and unmount c. Just use mount for both d. mount and dismount

a. mount and umount

What command will list the processes that are running, by default it just shows the PID, Terminal, Time and process name? a. ps b. process c. proc d. kill -l

a. ps

A technician notices the following line in a logging script: logger -p local0.err "diskusage: Directory $1 not found" To change where this is being logged so the log messages can be easily found what command should be run? a. sudo nano /etc/rsyslog.d/logging.conf b. sudo logger --configure c. sudo restore -if local0.err d. sudo syslog --configure

a. sudo nano /etc/rsyslog.d/logging.conf

Create a backup of /etc to a removable hard disk drive mounted at /mnt/USB. Which tar command will do this? a. tar -cfv /mnt/USB/backup.tar /etc b. tar -xzf /mnt/USB/backup.tar /etc c. tar -xfv ~/backup.tar /etc d. tar -cfv /mnt/USB/backup.tar ~/etc

a. tar -cfv /mnt/USB/backup.tar /etc

You are adding a user. The value stored in the variable USERGROUPS_ENAB in /etc/login.defs is yes. You do not wish to create a new group, but want the user's primary group to be the same as the value (100) stored in the GROUP variable in /etc/default/useradd. Which of the following commands would accomplish this? (Choose two.) a. useradd -g 100 <username> b. useradd -G 100 <username> c. Create the user and then execute the command usermod -g <username> d. useradd -n <username>

a. useradd -g 100 <username> d. useradd -n <username>

Which entry in an /etc/shadow record's password field will indicate a user password has not been set for that user. a. ! b. !! c. LK d. NP

b. !!

Fill in the blank with the option to create a snapshot. (Choose two.) lvcreate -L 1G ____ -n snapshot DATA a. --snap b. -s c. --clone d. --snapshot

b. -s d. --snapshot

Where is the mount information stored on linux? a. /dev b. /etc/fstab c. /mnt d. /mount

b. /etc/fstab

A user has a primary group and may be a member of more than one secondary group. Which file would you look in to find a user's secondary groups. a. /etc/profile b. /etc/group c. ~/.bash_profile d. /etc/passwd

b. /etc/group

Which GRUB2 configuration script file can detect a Windows installation on the same hard disk as Linux? a. 10_linux b. 30_os-prober c. 40_custom d. 00_header

b. 30_os-prober

To prevent a specific user from scheduling tasks with at, what should the administrator do? a. Add the specific user to /etc/at.allow file. b. Add the specific user to /etc/at.deny file. c. Add the specific user to nojobs group. d. Run the following: atd --deny [user]. e. Add the specific user to [deny] section in the /etc/atd.conf file.

b. Add the specific user to /etc/at.deny file.

The command "touch 1 2 3 4" does what? a. Creates 1 file then error message b. Creates 4 files 1 2 3 4 c. always gives permission denied error d. Creates a file titled 1 2 3 4

b. Creates 4 files 1 2 3 4

You've created a shell script named myscript in your home directory. How can you execute it? (Choose two.) a. Select Computer | Run in the graphical desktop; then enter ~/myscript and select Run. b. Enter chmod u+x ~/myscript; then enter ~/myscript at the shell prompt. c. Enter run ~/myscript at the shell prompt. d. Enter /bin/bash ~/myscript at the shell prompt. e. Enter myscript at the shell prompt.

b. Enter chmod u+x ~/myscript; then enter ~/myscript at the shell prompt. d. Enter /bin/bash ~/myscript at the shell prompt.

The following line appears in the crontab file * * * * * diskusage how often will it run? a. Every hour b. Every minute c. It will not run but will give an error message d. Once e. Every second

b. Every minute

RAID 0 provides fault tolerance such that if one drive fails the other will contain the data a. True b. False

b. False

SCSI is an old standard and no longer in use. a. True b. False

b. False

On a Linux system the file system table file usually uses UUIDs of partitions rather than the representation of the partition as a device file. What is the reason that UUIDs are preferred? a. The UUID is a block device. b. If partitions are added or removed it may change the names of the other device files in the system. c. The UUID is shorter. d. The device file is a block device.

b. If partitions are added or removed it may change the names of the other device files in the system.

If this is the directory listing: Which file will run first, and which file last? a. KPulseaudio and last s21rmnologin b. S01motd and last s21rmnologin c. README and last S19saned d. S01motd and last s16sudo

b. S01motd and last s21rmnologin

Which kill signal sends a CTRL-C key sequence to a running process? a. SIGKILL b. SIGINT c. SIGTERM d. SIGHUP

b. SIGINT

What does the command kill -9 241 do? a. Terminates the process with PID 9 b. Terminates the process with PID 241 d. Pauses the process with PID 241 d. Pauses the process with PID 9

b. Terminates the process with PID 241

A user calls and asks to get their linux password, after verifying their credentials, what would be the best response? a. Let me look in the shadow file b. User passwords are not stored on the system I will give you a temporary password? c. I will create a new account for you d. Let me check the passwd file

b. User passwords are not stored on the system I will give you a temporary password?

What command could I use to cause passwords to expire earlier? a. passage b. chage c. passwdage d. change

b. chage

What is the command to change GECOS information? a. sudo passwd b. chfn c. chGECOS d. chpw

b. chfn

Which of the following commands will change the group of a file named report.doc from group student to group research? a. chown research report.doc b. chgrp research report.doc c. chmod g=research report.doc d. newgroup research report.doc

b. chgrp research report.doc

What command would I use to check to see how the hard drive is doing? a. checkdisk b. hdparm c. diskchk d. drivechk

b. hdparm

Which commands would display the first ten lines of the file /etc/passwd? (Select two.) a. head +10 /etc/passwd b. head -10 /etc/passwd c. head /etc/passwd d. head 10 /etc/passwd

b. head -10 /etc/passwd c. head /etc/passwd

I am a new Linux and Unix system user. How do I find out the user and groups names and numeric IDs of the current user or any users on my server? a. findid b. id c. whoami d. finger

b. id

Which of the following commands will list the file systems that are currently mounted? a. ls -f b. mount c. mount /dev/sda* d. showfs

b. mount

Which of the following commands puts the output of the command ls into the shell variable myls? (CHOOSE 2) a. myls="ls" b. myls="$(ls)" c. myls='$(ls)' d. myls="${ls}" e. myls="exec ls" f. myls=`ls`

b. myls="$(ls)" f. myls=`ls`

Which command can process a file or text stream and add a number to the beginning of each new line? a. join b. nl c. fmt d. paste

b. nl

How do I get a response back from the keyboard a. capture b. read c. get d. getch

b. read

#! is called as a. hash prompt b. shebang c. hebang d. file finder

b. shebang

Which should command should I use halt or shutdown to turn off the system? a. halt -p b. shutdown c. either one both power off d. Never works the same.

b. shutdown

Which of the following commands should an administrator use to edit the /etc/passwd file directly? a. sudo vi /etc/passwd b. sudo vipw c. vi /etc/passwd d. sudo more /etc/passwd

b. sudo vipw

The following has appeared on my screen, what did I do? a. telinit 2 b. telinit 1 c. telinit 0 d. telinit 6

b. telinit 1

what does the following script do: $ cat /etc/cron.daily/logrotate #!/bin/sh /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then ...../usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit 0 a. updates the syslog file each time it is run b. this shell script executes the logrotate command everyday c. it is impossible to determine d. crashes with an permissions denied error message

b. this shell script executes the logrotate command everyday

Which of the following information is NOT found in the /etc/passwd file? a. user name b. user password c. home directory d. default shell

b. user password

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.) a. chattr b. usermod c. chage d. chsh e. passwd

b. usermod c. chage e. passwd

I have plugged in new scsi drives into the computer. Where would I look for the hardware manager to see if Linux recognized the drives? a. /hardware b. /drivers c. /dev d. /proc

c. /dev

Which of these startup steps is out of order? The bootloader finishes it's thing /etc/inittab is consulted to see what runlevel the system should be put into, and any commands for that runlevel are run. see man inittab if you're curious about this file. /etc/rc?.d (where ? = runlevel) S* scripts are run /etc/rc.local is run /etc/rc.sysinit is run - don't change this as patches may overwrite it. a. /etc/rc?.d (where ? = runlevel) S* scripts are run b. /etc/rc.local is run c. /etc/rc.sysinit is run - don't change this as patches may overwrite it. d. /etc/inittab is consulted to see what runlevel the system should be put into, and any commands for that runlevel are run. see man inittab if you're curious about this file.

c. /etc/rc.sysinit is run - don't change this as patches may overwrite it.

The command dmesg reads from which logfile? a. /var/log/syslog b. /var/log/wtmp c. /var/log/dmesg d. /var/log/rsyslog

c. /var/log/dmesg

What is the PID of the init process? a. Can be any number between 1 and 10 b. 2 c. 1 d. depends on the boot

c. 1

When using a standard partition table, a disk may have ____ primary partitions a. 2 b. 1 c. 4 d. Any number (up to 65536)

c. 4

Which permission, when applied to a directory in the file system, will allow a user to enter the directory? a. Access Control b. Write c. Execute d. Read

c. Execute

What raid level is also known as striping a. Raid 2 b. Raid 1 c. Raid 0 d. Raid 3

c. Raid 0

What is Non Volatile Storage? a. Secondary Storage b. Storage used for swap c. Storage where data is stored across boots. d. Fire protected storage

c. Storage where data is stored across boots.

Creating a hard link to an ordinary file returns an error. What could be the reason for this? a. The source file is read-only. b. The source file is already a hard link. c. The source and the target are on different filesystems. d. The source file is hidden. e. The source file is a shell script.

c. The source and the target are on different filesystems.

Which of the following commands is used to make a file immutable? a. chattr ++immutable <filename> b. chattr -i <filename> c. chattr +i <filename> d. chattr --immutable <filename>

c. chattr +i <filename>

I try to run my script but I get the error: student@debian:~/Documents$ ./guessgame bash: ./guessgame: Permission denied What do I need to do to fix it? a. give up it won't run b. change permission guessgame c. chmod +x guessgame d. log in as super user with more permissions

c. chmod +x guessgame

You need to change the owner of a file named /var/opt/runme from mireland, who is a member of the staff group, to dnelson, who is a member of the editors group. Assuming you want to change both user and group owners, which command will do this? a. chown dnelson /var/opt/runme b. chown mireland dnelson /var/opt/runme c. chown dnelson:editors /var/opt/runme d. chown -u "dnelson" -g "editors" /var/opt/runme

c. chown dnelson:editors /var/opt/runme

Which command will remove the account named jane from the system? a. deleteuser jane b. rm -user jane c. deluser jane d. userdelete jane

c. deluser jane

What is the name of the boot loader package from the GNU Project? a. kickthecan b. GNUboot c. grub d. bootme

c. grub

Which control structures are considered to be branching structures? (Choose two.) a. A while loop b. An until loop c. if/then/else d. case b. A for loop

c. if/then/else d. case

Which command will create a compressed cpio archive of all the files in the Projects directory within the user's home directory to /mnt/usbdrive/Projectsbackup.cpio.gz? a. cpio -ov ~/Projects | gzip > /mnt/usbdrive/Projectsbackup.cpio.gz b. ls ~/Projects | cpio -ovz | > /mnt/usbdrive/Projectsbackup.cpio.gz c. ls ~/Projects | cpio -ov | gzip > /mnt/usbdrive/Projectsbackup.cpio.gz d. cpio -ovz ~/Projects > /mnt/usbdrive/Projectsbackup.cpio.gz

c. ls ~/Projects | cpio -ov | gzip > /mnt/usbdrive/Projectsbackup.cpio.gz

If I have the following program: a=5 b=6 if [ "$a" -ne "$b" ] then echo no match fi What will appear on the screen? a. nothing b. syntax error c. no match d. permission denied error

c. no match

How do I get a response back from the keyboard? a. getch b. get c. read d. capture

c. read

/etc/crontab contains the line 2 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) What does this do? a. runs cron.monthy at 2:06 am each month b. crashes with an error message c. runs cron.monthly at 6:02 am on the first of each month d. It is impossible to determine

c. runs cron.monthly at 6:02 am on the first of each month

In modern systems that use very fast Non-Volatile Memory Express (NVMe) or other flash memory technologies which storage component becomes the bottleneck? a. copper wiring b. the drive itself c. storage controllers d. it is impossible to determine

c. storage controllers

Which command will remove the group named developers from the system? a. sudo deletegroup developers b. All are correct c. sudo delgroup developers d. sudo groupdelete developers

c. sudo delgroup developers

What system driver is usally used on linux to interpret FAT filesystems? a. New Technology File System driver for linux b. File allocation table driver c. the vfat filesystem driver d. simple filesystem driver

c. the vfat filesystem driver

What does the command fsck /dev/sda1 do? a. changes the file system used by a hard drive b. used to partition the hard drive c. used to check the state of and repair a file system d. access hard drive partitions

c. used to check the state of and repair a file system

A user needs to count the different permission types. The command so far looks like: ls -l| cut -c1-10|sort What needs to be added to the end to count the different permission types: a. | wc -c b. | wc -l c. | uniq -c d. | wc -w

c. | uniq -c

Which control structure will keep processing over and over as long as the specified condition evaluates to false? a. case b. An until loop c. A for loop d. if/then/else e. A while loop

e. A while loop

What 4 letter command allows a user to change their GECOS information?

chfn

chmod 101 myfile will result in which permissions being set? a. r-------- b. rwx------ c. rwx-----x d. --x-----x

d. --x-----x

Which crontab entry would run that backup script at 12:01 a.m. 1 minute after midnight everyday. a. 0 1 * * * /root/bin/backup.sh b. You would have to use anacrontab for this c. 1 0/12 * * * /root/bin/backup.sh d. 1 0 * * * /root/bin/backup.sh

d. 1 0 * * * /root/bin/backup.sh

What speed is SATA II? a. 750 MB/s b. 1.2 Gb/s c. 150 MB/s d. 3 Gb/s

d. 3 Gb/s

Which entry will execute the Full backup shell script (full-backup) on 10th June 08:30 AM a. 10 06 08 30 * /bin/full-backup.sh b. 30 20 06 08 * /bin/full-backup.sh c. none of the other entries d. 30 08 10 06 * /bin/full-backup.sh

d. 30 08 10 06 * /bin/full-backup.sh

How many fields are in a syntactically correct line of /etc/fstab? a. 5 b. 7 c. 3 d. 6 e. 4

d. 6

What kinds of storage type is it when I just connect disks to the system without adding additional control? a. chaos b. RAID c. SOD d. JBOD

d. JBOD

The comparison operator " -eq " is used for a. Characters b. Any kind of data c. Strings d. Numbers

d. Numbers

Which is the first step that is taken when booting a system? a. Execution of system startup scripts. b. Device detection and configuration. c. Loading and initialization of the kernel. d. Reading of the boot loader from the master boot record.

d. Reading of the boot loader from the master boot record.

What type of access control usually consists of moving people into or out of groups andassigning or removing permissions for groups? a. Group access control b. Physical access control systems (PACS) c. Simple access control systems d. Role based access control

d. Role based access control

A user with a user ID of 3 has an asterisk in their password field in /etc/shadow. What does this indicate? a. This a rogue account that has been blocked by security software b. The account has been disabled. c. This is a system application account and does not require a password. d. This is a service (or system) account and does not use the shadow file for authentication

d. This is a service (or system) account and does not use the shadow file for authentication

The purpose of the /etc/shadow file is a. To serve as a backup of the fstab file. b. All are correct c. To shadow the use of the sudo command. d. To hold the encrypted user passwords.

d. To hold the encrypted user passwords.

What is true regarding the file ~/.forward? a. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses. b. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes. c. As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command. d. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.

d. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.

Scripts are made executable using the command a. chown b. exe c. run d. chmod

d. chmod

Which command is used to make a script executable? a. chown b. chrun c. chexe d. chmod

d. chmod

What command would you use to set the setgid bit for looper? a. chown bilbo looper b. setgid looper c. chmod u+x looper d. chmod g+s looper

d. chmod g+s looper

In trouble shooting the cmd command which symbols would be used to send the error and the outputs to a file? a. cmd >> file b. cmd 1> file c. cmd | file d. cmd &> file

d. cmd &> file

What command will show you how much space is left on your disks a. free b. ls -free c. fdisk d. df

d. df

Which of the following is not a kind of shell a. csh b. ksh c. bash d. dsh

d. dsh

Which command allows me to see all the preloaded bash variables? a. preload b. showvar c. grep d. env

d. env

Doing a listing of file A I get the following permissions: -rw-rw-r--+ Which command would help me see what additional permission are indicated by the + a. chattr b. setfacl c. chmod d. getfacl

d. getfacl

In optical storage, constant angular velocity (CAV) a. is a not possible due to physics b. is not often given in the specs c. is not used in determining the speed of the drive d. is a qualifier for the rated speed of an optical disc drive, and may also be applied to the writing speed of recordable discs.

d. is a qualifier for the rated speed of an optical disc drive, and may also be applied to the writing speed of recordable discs.

What command will list available signals on the system? a. list b. find signals c. signal --list d. kill -l

d. kill -l

A user would like to create a link between two files located in different filesystems. What command would they use? a. ls -l filea b. ln c. ln -sl filea d. ln -s

d. ln -s

What command would create a file that shares the same inode as filea? a. cat < filea > fileb b. ln -s fileb filea c. ln -s filea fileb d. ln filea fileb

d. ln filea fileb

Which command is used to list all the contents of a directory (including files with names that begin with a dot)? a. ls -x b. ls c. ls -ux d. ls -a

d. ls -a

Which is not an example of storage containers? a. disk drives b. volumes c. partitions d. myfile.txt

d. myfile.txt

The command "rm *" would do what? a. remove all directories and subdirectories b. It is impossible to determine c. put an error message or warning on the terminal d. remove all files in the current working directory

d. remove all files in the current working directory

I have added a new scsi drive to the system, what command will tell the operating system I have plugged in a new drive? a. reboot b. new-scsi c. check-scsi d. rescan-scsi-bus

d. rescan-scsi-bus

Which order would best work for these commands? a. rescan-scsi-bus, mkfs.ext4 /dev/sdd1, cfdisk /dev/sdd, mkdir /mnt/storage1, mount /dev/sdd1 /mnt/storage1 b. rescan-scsi-bus, mount /dev/sdd1 /mnt/storage1, cfdisk /dev/sdd, mkfs.ext4 /dev/sdd1, mkdir /mnt/storage1 c. cfdisk /dev/sdd, rescan-scsi-bus, mkfs.ext4 /dev/sdd1, mkdir /mnt/storage1, mount /dev/sdd1 /mnt/storage1 d. rescan-scsi-bus, cfdisk /dev/sdd, mkfs.ext4 /dev/sdd1, mkdir /mnt/storage1, mount /dev/sdd1 /mnt/storage1

d. rescan-scsi-bus, cfdisk /dev/sdd, mkfs.ext4 /dev/sdd1, mkdir /mnt/storage1, mount /dev/sdd1 /mnt/storage1

Modern access control links groups of individuals such as everyone in IT1510 or all students together by what they need to do and access in the company. What are these grouping called? a. sudo b. groups c. jobs d. roles

d. roles

If I run the following command what will happen: shutdown -h +10 "Development server is going down for maintenance. Please save your work ASAP." a. shutdown system at 10:00 pm with warning message with warning message b. shutdown system at 10:00 am with warning message c. shutdown system in 10 hours with warning message d. shutdown system in 10 minutes with warning message

d. shutdown system in 10 minutes with warning message

The first column of the file logfile.txt contains last names. Which commands will sort the file by last names? (Choose two.) a. sort < logfile.txt -o "screen" b. sort -n logfile.txt ......C. cat /var/log/messages | awk 'syslog {print 6,7,8}' c. sort < logfile.txt > screen d. sort < logfile.txt e. sort logfile.txt

d. sort < logfile.txt e. sort logfile.txt

New backup technicians have been hired. What commands could be used to give them root privileges to a limited set of backup commands? a. sudo chmod +s dump b. sudo passwd c. sudo sudoers d. sudo visudo

d. sudo visudo

[ is eqvivalent to a. for b. then c. while d. test

d. test

How do you add journaling to ext2 making it ext3? a. tune2fs -i d|m|w /dev/sda1 b. tune2fs -c num /dev/sda1 c. the -C option d. tune2fs -j /dev/sda1

d. tune2fs -j /dev/sda1

Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes? a. edquota b. core c. quota d. ulimit

d. ulimit

The current ifconfig command needs to be fixed, how can its directory be found? a. where ifconfig b. find ifconfig c. fix ifconfig d. which ifconfig

d. which ifconfig

What happens if the password of a user in the /etc/shadow file is prepended with the ! character? a. When logging in, the user automatically gets root privileges in addition to his regular privileges. b. The user is disabled and all login methods, including but not limited to password based logins, are disabled. c. Upon the next log in, the user is forced to change his password. d. The password is inverted which allows the user to log in with any password other than the current password. e. The password becomes invalid which disables password based logins although other login methods remain usable.

e. The password becomes invalid which disables password based logins although other login methods remain usable.

Which command makes the shell variable named VARIABLE visible to subshells? a. env VARIABLE b. set $VARIABLE c. export $VARIABLE d. set VARIABLE e. export VARIABLE

e. export VARIABLE

What output will the following command sequence produce? echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done a. result: 3 2 1 b. result: 6 5 4 c. result: 6 5 4 3 2 1 d. result: 1 2 3 4 5 6 e. result: 3 4 5 6 2 1

e. result: 3 4 5 6 2 1


संबंधित स्टडी सेट्स

Chapter 6 Questions - Motivation

View Set

Semicolons, colons, dashes, and hyphens

View Set

Enhanced Gen Chem Ionic Compound list

View Set

Research Methods PSYS053--Exam 1

View Set

C++ Chapter 8 Searching and Sorting Arrays

View Set