- 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.
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- 假如C語言是我發明的:講給孩子聽的大師編程課
- HDInsight Essentials(Second Edition)
- WordPress 4.0 Site Blueprints(Second Edition)
- NoSQL數據庫原理
- Android應用案例開發大全(第二版)
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- JSP程序設計實例教程(第2版)
- 零基礎學Java第2版
- Java Web開發教程:基于Struts2+Hibernate+Spring
- Learning Cocos2d-JS Game Development
- Sitecore Cookbook for Developers
- Mastering ASP.NET Web API
- Mastering VMware vSphere Storage
- 精通Oracle 12c 數據庫管理