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

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.
主站蜘蛛池模板: 文化| 敖汉旗| 岐山县| 马边| 铜鼓县| 长宁县| 襄樊市| 焦作市| 华容县| 南京市| 张家口市| 平遥县| 德阳市| 新民市| 太谷县| 临桂县| 高淳县| 麦盖提县| 崇左市| 承德县| 湘阴县| 门源| 清流县| 册亨县| 海宁市| 晋江市| 建宁县| 平原县| 东莞市| 宝鸡市| 曲靖市| 页游| 东至县| 东山县| 荥阳市| 垫江县| 德令哈市| 金湖县| 江都市| 西青区| 山西省|