Chap3:文件系统中跳转[The Linux Command Line]
1 introduce the following commands
pwd - Print name of current working directory
cd-Change directory
ls-List directory contents
2 understand the file system tree
Unix-like systems such as Linux always have a single file system tree, regardless of how many drives or storage devices are attached to the computer.Storage devices are attached(or morer correctly,mounted) at various points on the tree according to the whims of the system administrator, the person(or persons) reponsible for the maintenance of the system.
3 the current working directory
Imagine that the file system is a maze shaped like an upside-down tree and we are able to stand in the middle of it. At any given time ,we are inside a single directory and we can see the files contained in the directory and the pathway to the directory above us(called the parent directory) and any subdirectories below us.The directory we are standing in is called the current working directory.To display the current working directory,we use the pwd(print working directory) command.
4 home directory
When we first log in to our system(or start a terminal emulator session) our current working directory is set to our home directorty. Each user account is given its own home directory and when operating as a regulat user, the home directory is the only place the user is allowed to write files.
5 list the files and directories
we use the ls command.
6 change working directory
we use the cd command. To do this , type cd followed by the pathname of the desired working directory.A pathname is the route we take along the branches of the tree to get to the directory we want. Pathnames can be specified in one of two different ways;as absolute pathnames or as relative pathnames.
6.1 absolute pathname
begins with the root directory and follow the tree branch by branch until the path to the desired directory or file is completed.
6.2 relative pathname
starts from the working directory.(we can use the one that requies the least typing)
7 Importance Facts About Filenames
(1)Filenames that begin with a period character are hidden.This only means that ls will not list them unless you say ls-a.
(2)Filenames and commands in Linux,like Unix, are case sensitive.
(3)Linux has no concept of a "file extension" like some other operating system.
(4)Though Linux suports long filenames which may contain embedded spaces and punctuation characters,limit the punctuation characters in the names of files you create to period(.),dash(-),and underscore(_).
Chap3:文件系统中跳转[The Linux Command Line]的更多相关文章
- (一)linux 学习 -- 在文件系统中跳转
The Linux Command Line 读书笔记 - 部分内容来自 http://billie66.github.io/TLCL/book/chap03.html 文章目录 文件系统 根目录 打 ...
- 《The Linux Command Line》 读书笔记01 基本命令介绍
<The Linux Command Line> 读书笔记01 基本命令介绍 1. What is the Shell? The Shell is a program that takes ...
- 《The Linux Command Line》 读书笔记04 Linux用户以及权限相关命令
Linux用户以及权限相关命令 查看身份 id:Display user identity. 这个命令的输出会显示uid,gid和用户所属的组. uid即user ID,这是账户创建时被赋予的. gi ...
- 《The Linux Command Line》 读书笔记02 关于命令的命令
<The Linux Command Line> 读书笔记02 关于命令的命令 命令的四种类型 type type—Indicate how a command name is inter ...
- Linux Command Line 解析
Linux Command Line 解析 0 处理模型 Linux kernel的启动包括很多组件的初始化和相关配置,这些配置参数一般是通过command line进行配置的.在进行后续分析之前,先 ...
- Linux Command Line Basics
Most of this note comes from the Beginning the Linux Command Line, Second Edition by Sander van Vugt ...
- 15 Examples To Master Linux Command Line History
When you are using Linux command line frequently, using the history effectively can be a major produ ...
- 10 Interesting Linux Command Line Tricks and Tips Worth Knowing
I passionately enjoy working with commands as they offer more control over a Linux system than GUIs( ...
- Reso | The Linux Command Line 的中文版
http://book.haoduoshipin.com/tlcl/book/zh/ 本书是 The Linux Command Line 的中文版, 为大家提供了多种不同的阅读方式. 中英文双语版- ...
随机推荐
- Socket网络编程--网络爬虫(3)
上一小节我们实现了从博客园的首页获取一些用户的用户名,并保存起来.接下来的这一小节我将对每个用户名构建一个用户的博客主页,然后从这个主页获取所有能获取到的网页,网页的格式现在是http://www.c ...
- ECMAScript 6 入门之新的数据类型Symbol
1.Symbol,一个每次创建都不一样的值 Symbol undefined null Boolean String Number Object let c=Symbol("这是一个Symb ...
- RxSwift之路 2#如何开始
RxSwift之路 2#如何开始 第一步当然是把项目clone到本地,github地址:https://github.com/ReactiveX/RxSwift. 官方文档 学习的第一手资源当然是项目 ...
- linux每日命令(31):tar命令
tar命令可以为linux的文件和目录创建档案.利用tar,可以为某一特定文件创建档案(备份文件),也可以在档案中改变文件,或者向档案中加入新的文件.tar最初被用来在磁带上创建档案,现在,用户可以在 ...
- 【iCore4 双核心板_ARM】例程十一:DMA实验——存储器到存储器的传输
实验原理: DAM(直接存储器访问)传输不需要占用CPU,可以在存储器至存储器实现高速的数据 传输.本实验采用DAM2控制器的数据流0,选用通道0进行数据传输.通过LED的颜色来 判断传输是否成功. ...
- Python fcntl 与 signal 模块使用
这两个模块是Python标准库里面就包含的模块 用法介绍在 https://docs.python.org/2/library/signal.html https://docs.python.org/ ...
- InstrumentDriver,对iOS自动化测试说 Yes!
InstrumentDriver 是 Mobile自动化小组最近实现的基于 instrument,针对 iOS 的自动化测试框架,目前支持 java 语言编写测试用例. 研究过iOS自动化测试的同学肯 ...
- Java知多少(27)继承的概念与实现
继承是类与类之间的关系,是一个很简单很直观的概念,与现实世界中的继承(例如儿子继承父亲财产)类似. 继承可以理解为一个类从另一个类获取方法和属性的过程.如果类B继承于类A,那么B就拥有A的方法和属性. ...
- 80x86的保护模式
什么是保护模式? 通过对程序使用的存储区采用分段.分页的存储管理机制, 达到分组使用.互不干扰的保护目的.能为每个任务提供一台虚拟处理器,使每个任务单独执行,快速切换. 所以,内存地址由段基地址.偏移 ...
- Mysql系列八:Mycat和Sharding-jdbc的区别、Mycat分片join、Mycat分页中的坑、Mycat注解、Catlet使用
一.Mycat和Sharding-jdbc的区别 1)mycat是一个中间件的第三方应用,sharding-jdbc是一个jar包 2)使用mycat时不需要改代码,而使用sharding-jdbc时 ...