Introduction to Linux - Chapter 14

¡Supera tus tareas y exámenes ahora con Quizwiz!

The output of the ls -l command includes "/etc/grub.conf -> ../boot/grub/grub.conf". Based on this information, which is the soft link file? ../boot/grub/grub.conf Both Neither /etc/grub.conf

/etc/grub.conf

Which value represents the hard link count in the following output of the ls -li command: 87589 -rw-r-r-. 2 root root 83 Mar 4 22:45 myhosts 87589 2 22:45 83

2

Which value represents the inode number in the following output of the ls -li command: 87589 -rw-r-r-. 2 root root 83 Mar 4 22:45 myhosts 22:45 83 2 87589

87589

A soft link is also called a _____ link. symbolic indirect true false

symbolic

What permissions are typically placed on soft link files? ——— rw-rw-rw- rwxrwxrwx rwx——

rwxrwxrwx

Which type of link can be made to a file on another filesystem, hard or soft? soft hard

soft

Which type of link can be made to directories, hard or soft? hard soft

soft

Which type of link is easier to visually "see", hard or soft? hard soft

soft

Which option to the ls command displays the inode numbers of files? -inum -i -l -N

-i

What option to the find command allows you to search for files by inode numbers? -links -ipath -inum -mtime

-inum

When you create a soft link, it increases the hard link count by one.True or False? True False

False

Which are valid link types in Linux? (choose two) Filesystem links Stable links Hard links Soft links

Hard links , Soft links

If you have a file named /tmp/hosts pointing to a file named /etc/hosts and the /etc/hosts file is deleted, then which of the following statements is true? The /tmp/hosts file now points to nothing You can still access the data by using /tmp/hosts The data from /etc/hosts is automatically copied into /tmp/hosts before /etc/hosts is deleted It is not possible to delete the /etc/hosts file while a soft link is pointing to it

The /tmp/hosts file now points to nothing

If you have 5 hard linked files and you delete four of them including the original one, then: The file still exists, but the data in the file is deleted You lose the data from the file The hard link count goes to 0 The data is still available from the remaining file

The data is still available from the remaining file

Which is true about hard links? They are created with the ln -s command They share inodes They can only be created by the root user They can be made to directories

They share inodes

When you create a hard link, it increases the hard link count by one.True or False? True False

True

Which type of link is indistinguishable by programs from regular files, hard or soft? soft hard

hard

When viewing a file with the ls -l command, which character represents a file type of soft link? - d f l

l

Which of the following commands will create a soft link from the /tmp/test file to the /tmp/data file? ln /tmp/test /tmp/data ln /tmp/data /tmp/test ln -s /tmp/test /tmp/data ln -s /tmp/data /tmp/test

ln -s /tmp/test /tmp/data

Which of the following commands will create a hard link from the /tmp/test file to the /tmp/data file? ln -s /tmp/data /tmp/test ln /tmp/data /tmp/test ln /tmp/test /tmp/data ln -s /tmp/test /tmp/data

ln /tmp/test /tmp/data


Conjuntos de estudio relacionados

Give combining forms for the following meanings:

View Set

Chapter 18 - The Circulatory System: Blood

View Set

Determine which of the following are effects of the sympathetic nervous system

View Set

Alcohol, Tobacco, and Other Drugs

View Set

Chapter 15: Assessing the Head and Neck

View Set

Physical Science Lecture assignment 15/16

View Set