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]的更多相关文章

  1. (一)linux 学习 -- 在文件系统中跳转

    The Linux Command Line 读书笔记 - 部分内容来自 http://billie66.github.io/TLCL/book/chap03.html 文章目录 文件系统 根目录 打 ...

  2. 《The Linux Command Line》 读书笔记01 基本命令介绍

    <The Linux Command Line> 读书笔记01 基本命令介绍 1. What is the Shell? The Shell is a program that takes ...

  3. 《The Linux Command Line》 读书笔记04 Linux用户以及权限相关命令

    Linux用户以及权限相关命令 查看身份 id:Display user identity. 这个命令的输出会显示uid,gid和用户所属的组. uid即user ID,这是账户创建时被赋予的. gi ...

  4. 《The Linux Command Line》 读书笔记02 关于命令的命令

    <The Linux Command Line> 读书笔记02 关于命令的命令 命令的四种类型 type type—Indicate how a command name is inter ...

  5. Linux Command Line 解析

    Linux Command Line 解析 0 处理模型 Linux kernel的启动包括很多组件的初始化和相关配置,这些配置参数一般是通过command line进行配置的.在进行后续分析之前,先 ...

  6. Linux Command Line Basics

    Most of this note comes from the Beginning the Linux Command Line, Second Edition by Sander van Vugt ...

  7. 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 ...

  8. 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( ...

  9. Reso | The Linux Command Line 的中文版

    http://book.haoduoshipin.com/tlcl/book/zh/ 本书是 The Linux Command Line 的中文版, 为大家提供了多种不同的阅读方式. 中英文双语版- ...

随机推荐

  1. DataTables 全局设置中文语言

    参考来源:https://blog.csdn.net/qq_22690445/article/details/79682311 $.fn.dataTable.defaults.oLanguage = ...

  2. rand()产生随机数 及其和clock()的不同

    rand()使用 首先我们要对rand&srand有个总体的看法:srand初始化随机种子,rand产生随机数. 定义函数 : int rand(void) 函数说明 :因为rand的内部实现 ...

  3. PHP Backdoor + Reverse Shell on Vulnerable Website

    翻译总结自: https://shellgam3.com/2016/07/27/php-backdoor-reverse-shell-on-vulnerable-website/ 扫描Web服务器,爆 ...

  4. Android Launcher分析和修改8——AllAPP界面拖拽元素(PagedViewWithDraggableItems)

    接着上一篇文章,继续分析AllAPP列表界面.上一篇文章分析了所有应用列表的界面构成以及如何通过配置文件修改属性.今天主要是分析PagedViewWithDraggableItems类,因为在我们分析 ...

  5. Java知多少(54)断言详解

    断言的概念 断言用于证明和测试程序的假设,比如“这里的值大于 5”.断言可以在运行时从代码中完全删除,所以对代码的运行速度没有影响. 断言的使用 断言有两种方法: 一种是 assert<< ...

  6. 转载——githup的提交

    Github是管理软件开发的首选托管网站,12306的火车票插件一时让国内当时很多小白开发者(当然也包括我)认识到了这个网站.GitHub可以托管各种git库,并提供一个web界面,与 SourceF ...

  7. 大数据基础篇----jvm的知识点归纳-5个区和垃圾回收机制

    一直对jvm看了又忘,忘了又看的.今天做一个笔记整理存放在这里. 我们先看一下JVM的内存模型图: 上面有5个区,这5个区干嘛用的呢? 我们想象一个场景: 我们有一个class文件,里面有很多的类的定 ...

  8. Centos 7 查看电池电量信息

    而不像 ubuntu 在 /proc/acpi/battery/BAT 中. 其中 capacity 参数就是当前电脑的剩余电量的百分比信息了

  9. java-信息安全(九)-基于DH,非对称加密,对称加密等理解HTTPS

    概述 java-信息安全(七)-基于非对称加密,对称加密等理解HTTPS 如果想要理解好https,请尽量了解好以上信息等. 参看文章: http://www.ruanyifeng.com/blog/ ...

  10. [Android Studio] Using NDK to call OpenCV

    NDK才是Android开发通向超高薪之路.(这句话,似乎四年前有云) 难点在于常用的non-free module (sift and surf) unsw@unsw-UX303UB$ pwd /h ...