Question: Identify two reasons for not having a filename beginning with a hyphen. a. The hypen is not a valid character used in a filename. b.

Identify two reasons for not having a filename beginning with a hyphen.

a.

The hypen is not a valid character used in a filename.

b.

Difficult to remove such a file.

c.

Many commands interpret such filenames as options.

d.

The hypen causes the filename to be hidden from the user.

Sometimes the system refuses to create a directory.

$ mkdir test mkdir: Failed to make directory "test"; Permission denied

This can happen due to which of the following reasons?

The directory test may already exist.

There may be an ordinary file by that name in the current directory.

The permissions set for the current directory don't permit the creation of files and directories by the user.

There may be no space left on the file system to permit creation of files and directories.

Some of he above.

All of the above.

A good way to combine multiple files into a single file for transmission over a network is to use the tar UNIX command.

True

False

The rmdir command can only be used to remove one directory at a time.

True

False

Using a relative reference with a cd command, what would you enter on the command line to change from /var/spool/lp/admins to /var/spool/mail?

To display a list of files you would use the cat command.

True/False

Can the files note and Note coexist in the same directory?

Yes No

Can the files note and Note coexist in the same directory?

Yes No

When displaying a man page, you can use the _________ navigation key to move one page forward.

j (or [Enter])

k

b

f (or the spacebar)

A text file contains only printable characters whose ASCII values are less than 128.

True

UNIX is case insensitive with respect to filenames.

True

False

False

A UNIX filename can be up to _________ characters in length.

14

128

255

None of the above

A binary file can contain any character.

True

False

When displaying a man page, you can use the _________ navigation key to move one line forward.

b

f (or the spacebar)

k

j (or [Enter])

The cat command is often used to display the contents of a file, but it can also be used to concatenate multiple files.

True

False

A text file contains both printable and non-printable characters.

True

False

The lp command is used to spool a job to the print queue on a UNIX system.

True

False

Can non-privileged users execute any command in /sbin and /usr/sbin by using the absolute pathname?

Yes No

Assuming that bar is a directory, what is the difference between running rm -rf bar or rmdir bar from the command line?

a.

rm -rf bar forcibly deletes a nonempty directory structure, but rmdir bar does not.

b.

Nothing, they only delete non-empty directory structures.

c.

Nothing, they both delete non-empty directory structures.

d.

rmdir bar forcibly deletes a nonempty directory structure, but rm -rf bar does not.

The _________ characters can't be used as filename characters.

null and /

; and \

, and "

None of the above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!