官术网_书友最值得收藏!

Knowledge check

For the following exercises, open up your Terminal and try to solve the following tasks:

  1. Display the inode number of the /var/log directory.
  2. Display the number of hard links for the /boot directory.
  3. Create a new directory named coins in your home directory.
  4. Create a soft link to coins named currency.
  5. Inside the coins directory, create two files – silver and gold.
  6. Create a new file bronze inside currency.
  7. List the contents of both directories – coins and currency.
  8. Create a new file beverages with the line "coffee is awesome" in your home directory and create a hard link named drinks to beverages.
  9. Add the line "lemon is refreshing" to the drinks file and then remove the beverages file.
  10. Display the contents of your drinks file.

True or false

  1. The File Name is a part of the inode data structure.
  2. The File Size is a part of the inode data structure.
  3. You can create soft links to directories.
  4. You can create hard links to directories.
  5. The minimum number of hard links for a directory is 2.
  6. Soft links have the same inode number as the original file.
  7. Hard links have the same inode number as the original file.
主站蜘蛛池模板: 梁平县| 江孜县| 克什克腾旗| 宜良县| 兴义市| 临湘市| 枝江市| 闽侯县| 玛纳斯县| 沐川县| 临江市| 永平县| 蓬溪县| 双鸭山市| 凤冈县| 喀喇沁旗| 广河县| 商丘市| 铜鼓县| 右玉县| 津市市| 福泉市| 门源| 新乐市| 沙坪坝区| 甘泉县| 曲靖市| 上林县| 仁寿县| 青神县| 永城市| 涿鹿县| 台中县| 安阳县| 营山县| 公安县| 高阳县| 门源| 南雄市| 棋牌| 武邑县|