Linux Chapter 6

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

The tilde (~) is used to represent: -A user's home directory -Any two single characters -The directory above the current working directory -Nothing; it has no special meaning

-A user's home directory

The command ls -S will sort files: -By size, smallest to largest -By number of symlinks, largest to smallest -By modification date, newest to oldest -By size, largest to smallest

-By size, largest to smallest

The touch command can be used to:. (choose two) -Create new files -Change a file's name -Update the time stamp of existing files -Change ownership of a file

-Create new files -Update the time stamp of existing files

The cd command by itself will take you to what directory? -The system root directory -None; it is not a valid command -The directory above the current working directory -Your home directory

-Your home directory

What option for the ls command will display all files, including hidden files? -L -H -w -a

-a

Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes? -M -S -H -h

-h

Which option can be used with the rm command to prompt before deleting? -i I -P A

-i

Which option(s) can be used to prevent cp from overwriting an existing file?. (choose two) -n -N -z -i

-n -i

the command rm -r will... -remove a directory along with any files or subdirectories. -prompt for each confirmation before deleting each file in a directory. -remove only empty directories. -generate an error; -r isn't a valid option.

-remove a directory along with any files or subdirectories.

The double dot (..) can be used to represent the directory... ...above the current directory. ...below the current directory. ...with any two single numbers. ...above the current directory only when using the cd command.

...above the current directory.

The ls command without options or arguments... ...generates an error as this command requires arguments. ...lists the contents of the current directory. ...prompts for a directory to list. ...lists the contents of a user's home directory.

...lists the contents of the current directory.

The top-level directory on a Linux system is represented as: / C: /home /root

/

Hidden files are files that begin with what character? -A dash (-) -A plus (+) -A period (.) -An asterisk (*)

A period (.)

The first character in a long listing (ls -l) indicates: The permissions If something is a file, directory, or symbolic link The owner The size

If something is a file, directory, or symbolic link

Is the following path absolute or relative?. ../../home/sysadmin Relative Absolute

Relative

The double dot (..) can be used with the cd command to represent: The directory above the current working directory Nothing; it has no special meaning. Any two single characters A user's home directory.

The directory above the current working directory

The ls command color codes results by default.. True or False?

True

When using the cp command, you must provide both a source and a destination.. True or False?

True

Is the following path absolute or relative?. /etc/ppp Absolute Relative

absolute

What command will allow you to change your current working directory? chdir list cd ls

cd

Which of the following commands can be used to access the home directory of the user "bob" while logged in as root? (choose two) cd /home/bob cd ~bob cd && ~bob

cd /home/bob cd ~bob

Which of the following commands will prevent any aliased options to the ls command? /ls %ls %ls ls

ls

Which of the following commands can be used to rename a file? name mv rn cp

mv

Is the following path absolute or relative?. sysadmin/Documents Relative Absolute

relative

The rm command can delete multiple files at once.. True or False?

true


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

Inquizitive Chapter 4 Quiz (civil Liberties and Civil Rights)

View Set

Is, ea, id (3rd person pronouns) Translations

View Set

Marketing Exam 2 - Chapter 8 Segmentation & Targeting Markets

View Set

Chapter 10: Disorders of the Reproductive System (Test)

View Set

Maryland Health and Life Insurance Exam

View Set

2.5 Preguntas sobre los animales

View Set