Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

ID: 3845945 • Letter: I

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.

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.

Explanation / Answer

1)Answer:b.Difficult to remove such a file.

c.Many commands interpret such filenames as options.

Explanation:

Many commands interpret such filenames as options.

2)Answer: All of the above.

Explanation:

This may be due to following reasons:

•The directory test may already exist

• there may be an ordinary file by that name in the current directory

•If we try to create a directory in /bin , /etc or any other directory that houses the UNIX system files

3)Answer: True

explanation:

Unix, the name of the tar command is short for tape archiving, the storing of entire file systems onto magnetic tape, which is one use for the command. However, a more common use for tar is to simply combine a few files into a single file, for easy storage and distribution.

To combine multiple files and/or directories into a single file, use the following command:

4)Answer: false

Explanation:

You can also use the rm command to delete multiple Linux files at one time, like this:

6)Answer: False

Explanation:

The cat command displays the entire fileat once, even if it takes up more than one

The cat command can either display the contents of a file, or combine two or more files into one larger file.
7)Answer:Yes

explanation:

Yes - Unix filenames are case sensitive.

8)Answer: f (or the spacebar)

Explanation:

F = Forward forever; like "tail -f".

9)UNIX is case insensitive with respect to filenames.

Answer: True

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

Answer: 255

11)Answer:True

:Explanation:

Binary files can contain any type of data in binary format

12)Answwer: j

Explanation:

In a smaller chunk of data, where you want to locate particular error, you may want to navigate line by line using these keys:

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

Answer:True

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

Explanation:False

text file containsonly printable characters, not the non-printable ones.

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

Answer:False

explanation:

The lp command is used to print files on Unix and Linux systems

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

explanation:

rm -rf [dir] will delete the folder, ignoring if the folder contains files. rmdir [dir] will not delete the folder if it contains files.

17)

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

Answer:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote