- 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.
推薦閱讀
- FreeSWITCH 1.6 Cookbook
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- SQL for Data Analytics
- 精通網絡視頻核心開發技術
- Python:Master the Art of Design Patterns
- Getting Started with Laravel 4
- 單片機C語言程序設計實訓100例
- ASP.NET程序開發范例寶典
- MINECRAFT編程:使用Python語言玩轉我的世界
- 深入理解BootLoader
- Software-Defined Networking with OpenFlow(Second Edition)
- 精通Oracle 12c 數據庫管理
- 程序員的算法趣題2
- C#.NET程序設計
- Java王者歸來:從入門邁向高手