Linux Server Final

Ace your homework & exams now with Quizwiz!

When root is logged into a shell, what does the default prompt end with?

#

When a regular user is logged into the shell, what does the default prompt end with?

$

Where does RHEL store all the hashed passwords on a sysytem?

/etc/shadow

All user Documents, Videos, etc., are stored in the ________ directory

/home

Which folder, under root, stores the installed software and shared libraries?

/usr

root UID ==

0

system users (static) UID ==

1-200

A ______ account is used to provide security boundaries between different people and programs that can run commands.

user

Who is logged into this shell? [user@host]$

user

If a man page showed a (1) by the command, for instance tail(1), which content type would that represent?

user commands

What command is used to add a user to RHEL system?

useradd

The community-driven Linux distro that is derived from much of the open source RedHat Enterprise Linux codebase is called __________

CentOS

You want to create a shell variable. You want the name of the variable to be DAY and you want it equal to 7. What would you enter in the shell window?

DAY=7

_________ is a community project that produces and releases a complete, free, Linux-based OS

Fedora

What is the name of RHEL's default graphical desktop environment?

gnome

When using the more or less commands, how many lines are listed by default?

it scrolls through the entire file to the end

Which of the following is NOT a benefit of open source software?

low return on investment

To view process info, what command is used?

ps

Which command would you enter to display a full path name of the current working directory?

pwd

If I wanted to quit vim without saving changes, what character(s) would I enter in the extended command mode?

q!

The directory at the top of the Linux file-system is called the ______ directory

root

What is the name of the superuser account?

root

If you wanted to see all the shell variables, what command would you enter at the prompt?

set

channel 2 == ______

standard error

channel 0 == ______

standard input

channel 1 == ______

standard output

What command do you use to switch users?

su

If you want to run a command as a superuser and stay logged in as a regular user, what command would you place in front of the command you want to run as a superuser?

sudo

Which command copies its standard input to its standard output and also redirects its standard output to the files named as arguments to command when piping?

tee

Which one of the following provides easy access to use powerful scripting languages in Linux?

the CLI

A regular user can view the passwd file but they can't view the encrypted passwords (t/f)

true

The superuser can change the password of other users on the server (t/f)

true

If the GUI is available, the login screen will run on which virtual console in RHEL v8?

tty1

What command not only removes the user, but also deletes the user's home directory?

userdel -r

What command is used to modify an existing user?

usermod

What command would you use to obtain a word count of all the words in a file?

wc

What other command could you enter to find out who is logged into the shell prompt?

whoami

____________ are separate desktop screens that have different application windows

workspaces

Just like man pages, every command has an information page (t/f)

false

The directory that holds the binary files that users can run is stored in the /sbin directory (t/f)

false

Two files are linked using hard links. When you delete the original file, both files are removed (t/f)

false

User can perform all administrative tasks using the GUI, but not using the CLI (t/f)

false

You want to match all files that being with the characters file when running the ls command. What character would you use to match all the files?

file*

Where does RHEL store all the users on a system?

/etc/passwd

To view the owner of a file, what option would would you use with the ls command?

-I

What option would use with the ls command to include the contents of ALL subdirectories?

-R

What option would only display the number of characters in a file using the word count command?

-c

If you want to get an interactive root shell using sudo, what option would you use?

-i

What option would you use to perform a keyword search of a man page?

-k

What option would you use to show 15 lines using the head or tails command?

-n 15

You want to create the following directory: /home/student/Documents/RHEL/grades However the sub-directory RHEL does not exist at the time. What option would you use with the mkdir command that would create the RHEL directory on the fly?

-p

If you wanted to be prompted when removing files from directories, what option would you use with the rm command?

-ri

What option is used with the ln command to create a soft link?

-s

If you wanted to search for a string of characters in a man page, what symbol would you enter to start the search?

/

Which symbol represents the top of the directory in Linux OSs?

/

If I wanted to discard error messages, what would I redirect the error message to?

/dev/null

Which folder, under root, stores configuration files that specific to the system?

/etc

When using the head and tail commands, how many lines are listed by default?

10

regular user UID ==

1000+

In the following output, what is located in the UID field? student:x:1001:1003:John Doe:/home/student:/bin/bash

1001

system users (dynamic) UID ==

200-999

If I wanted to redirect the standard error message to a file, which command would I use?

2>file

What character would you press to enter extended command mode in vim?

:

Which character would you use to separate commands on a single line?

;

Every user has exactly one primary group, except for root, which has two (t/f)

false

Executing commands in the shell can be powerful. However, you can only run command in the shell, not scripts (t/f)

false

If you want to delete a directory that is NOT empty, you would use the rmdir with the -r option (t/f)

false

Which character would you enter to continue a long command on another line?

\

Which of the following are import directories directly under the root directory? Choose all that apply: a) /boot b) /etc c) /home d) /log e) /local

a, b, c

Commands entered at the shell prompt have three basic parts. What are they? a) The Command to run b) the permission to run the command c) Options d) the Arguments

a, b, d

What are the four operating modes of vim? a) command mode b) visual edit mode c) version mode d) extended command mode e) edit mode

a, b, d, e

Two ways to lock the screen are: a) Click the lock button in the system menu in the upper-right corner of the screen. b) Press CTRL-ALT-L c) Press Super + L d) Press CTRL-ALT-DELETE

a, c

What are two advantages of soft or symbolic links? a) Soft links can be used on directories as well as files. b) Soft links can only be used on files. c) Soft links can be created across different file systems. d) Soft links can only be created in the same file system.

a, c

You want to create 5 sub-directories ( day1, day2, day3, day4, and day5) inside of your Documents directory. Which command would you run? (Choose two) a) mkdir /home/student/Documents/day{1-5} b) mkdir /home/student/Documents/day1,2,3,4,5 c) mkdir /home/student/Documents/day{1,2,3,4,5} d) ls /home/student/Documents/day1 day2 day3 day4 day5

a, c

What are the three main types of user accounts? a) superuser b) guest users c) system users d) regular users

a, c, d

Which of the following commands represents absolute paths? (Choose all that apply) a) ls -l /home/student/Documents b) mkdir My_Documents/ c) mv file* ~/Documents d) cp file* /var/log/

a, d

If I wanted to open the info document viewer for the command tar, what two ways could I accomplish this task? a) man tar b) pinfo tar c) pinfo, then select tar from menu d) cinfo tar

b, c

The default shell for users in RHEL is called the _________ shell

bash

What is the default mode when starting vim?

command mode

What are the two types of open source licenses?

copyleft, permissive

What is the command to copy a file from one place to another?

cp

You just entered a very long command and you have discovered you made an error spelling the command. What shortcut could you enter to jump to the beginning of the command line?

ctrl +A

Which command would display the following output? Sat Jan 26 08:13:50 IST 2019

date

What command can you run to list the directories on different file systems?

df

If you wanted to redirect the output of a command to a new file, which command would I use?

echo "my data" > file

If I wanted to redirect the output of a command to a file and APPEND the data, which command would you use?

echo "my data" >> file

You created a shell variable WEEK and set the variable content to 8. Now, you want to display the content of the WEEK variable. What command would you enter?

echo $WEEK

A _____ is a collection of users that need to share access to files and other system resources

group

What command do you use to create a group?

groupadd

If a file has the same inode number, is it part of hard link or a soft link?

hard link

Which command displays a history of all the command run?

history

What command is used to show info about the currently logged-in user?

id

Which term describes the visual cue that indicated an interactive shell is waiting for the user to type a command?

prompt

You want to match all files that start with the letter b or c in a directory. Which command would you run?

ls [bc]*

You want to match all 4 character words starting with the letter z in a directory. Which command would you run?

ls z???

If I wanted to pipe the results of the ls command to the more command, how would you type that?

ls | more

One source of documentation that is generally available on the local system are called _______ pages

man

Linux is a _______ operating system that allows you to easily replace or remove components

modular

Which command would you use to change your password?

passwd

What command would you enter to launch the info document view?

pinfo


Related study sets

Quiz 1 Sports Governance and Leadership

View Set

Hand Fingertip Amputations, Dupuytren's, Vascular

View Set

Muscles Originating in the Axial Skeleton (and scapula)

View Set

Parenting Styles: Examples for Studying

View Set

Week 2: Biodiversity, the Biosphere, and Soils & Nutrient Cycling

View Set

Durham, Chapter 6: Antepartal Tests

View Set

Water, Electrolyte, and acid base balance: Water Balance

View Set

Arm, Forearm, Wrist and Hand Kinesiology

View Set

Certified Coding Associate (CCA) Exam Preparation 2018- with rationale

View Set

Shoulders (pt 1 overview-Ad Cap)

View Set

chapter three multiple choice/short answer

View Set

ANTH102: Body Ritual among the Nacirema (American)

View Set