- Learn Linux Quickly
- Ahmed AlKabary
- 202字
- 2021-06-11 18:43:53
Knowledge check
For the following exercises, open up your Terminal and try to solve the following tasks:
- Display the inode number of the /var/log directory.
- Display the number of hard links for the /boot directory.
- Create a new directory named coins in your home directory.
- Create a soft link to coins named currency.
- Inside the coins directory, create two files – silver and gold.
- Create a new file bronze inside currency.
- List the contents of both directories – coins and currency.
- Create a new file beverages with the line "coffee is awesome" in your home directory and create a hard link named drinks to beverages.
- Add the line "lemon is refreshing" to the drinks file and then remove the beverages file.
- Display the contents of your drinks file.
True or false
- The File Name is a part of the inode data structure.
- The File Size is a part of the inode data structure.
- You can create soft links to directories.
- You can create hard links to directories.
- The minimum number of hard links for a directory is 2.
- Soft links have the same inode number as the original file.
- Hard links have the same inode number as the original file.
推薦閱讀
- Practical Windows Forensics
- MongoDB權威指南(第3版)
- PHP編程基礎與實例教程
- HTML5秘籍(第2版)
- Mastering AWS Security
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Mastering Embedded Linux Programming
- Google Maps JavaScript API Cookbook
- C語言從入門到精通(微視頻精編版)
- JavaScript全棧開發
- Visual Basic程序設計
- 測試基地實訓指導
- PHP程序員面試算法寶典
- Mahout實踐指南
- Android 5 Programming by Example