There can be multiple root directories in Linux. True or False?
Describe a benefit of the Filesystem Hierarchy Standard (FHS).
Linux users and software developers can find the correct configuration files regardless of the distribution they’re using. Another benefit is that Linux software developers can create software that works in all major distributions.
What command do you use to display your current directory?
What command do you use to change to a different directory?
What command is used to view the contents of your current directory?
The cd /home/user command uses the relative method. True or False?
The -l option effects the ls command by:
a. Changing the format to a long list
After entering ls -a, how can you tell which files are hidden?
b. Their names start with a . (dot).
Describe three options you can use with the ls command.
Students can choose any three options from Table 3-2.
Which of the following information is displayed after issuing the ls -l command? (Choose all that apply.)
An inode table lists all inodes on a Linux partition. An inode is a data structure that stores information about a file, such as size and inode number; it doesn’t contain the actual data or the filename. An inode number references an entry in the inode table.
How does the -i option affect the ls command?
c. Displays the inode number
Explain the difference between hard links and symbolic links.
Hard links are files on the same partition that point to data on the hard drive. All hard links with the same inode number on the same disk partition point to the same data. Symbolic links are special types of files that point to other files, which can be on different partitions or even different computers. Unlike hard links, they don’t share the same inode number
How does the -s option affect the ln command?
a. Creates a symbolic link
What Linux command can you use to switch users without actually logging off your system?
The touch command is used to view a file’s timestamp, and the cp command is used to copy files from one directory to another.
Case Project 3-2: Creating a Link
First, students should change the directory to Michio’s home directory (cd /home/michio), and then create the symbolic link (ln -s /workgrp/project/sci.journal myjournal). Next, students should use similar commands for the other three science instructors.
Incorrect answers to look out for: Some students might start from the /workgrp/project directory. For instance, they might type cd /workgrp/project and then type ln -s sci.journal /home/dustin/myjournal. These commands are wrong because students are trying to create a symbolic link from a file. Doing so creates a symbolic loop and could cause unwanted effects. If necessary, remind students that they need to create a symbolic link that points to the file.