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. android 推流解决方案

    .LocalSocket + MediaRecorder + librtmp

  2. I帧、P帧、B帧、GOP、IDR 和PTS, DTS之间的关系

    一.视频传输原理 视频是利用人眼视觉暂留的原理,通过播放一系列的图片,使人眼产生运动的感觉.单纯传输视频画面,视频量非常大,对现有的网络和存储来说是不可接受的.为了能够使视频便于传输和存储,人们发现视 ...

  3. 【Linux高级驱动】rtc驱动开发

    [1.分层思想] 1.1 rtc-dev.c   //设备接口层,功能:给用户提供接口 subsys_initcall(rtc_init);   , RTC_DEV_MAX, "rtc&qu ...

  4. 3. ELMo算法原理解析

    1. 语言模型 2. Attention Is All You Need(Transformer)算法原理解析 3. ELMo算法原理解析 4. OpenAI GPT算法原理解析 5. BERT算法原 ...

  5. Java如何从IP地址查找主机名?

    在Java编程中,如何从IP地址查询出主机名? 以下示例显示了如何通过net.InetAddress类的InetAddress.getByName()方法将指定的IP地址查到主机名称. package ...

  6. 嵌入式开发之hi3519---PCIE DMA

    http://blog.csdn.net/abcamus/article/details/76167747 大话pcie dma http://blog.csdn.net/qingfengtsing/ ...

  7. android评分条RatingBar自定义设置

    RatingBar为评分条控件,默认效果为若干个绿色的星星,如果想将其换成其他自定义图片就要自定义它的style.首先是布局文件: 其中android:numStars="5"设置 ...

  8. 使用kill -9 进程ID杀死jps中进程

  9. gitlab 服务器的搭建与使用全过程(一)

    公司之前用的是vpn,然后老大说让我搞一个git.于是,我开始了git的研究之路.... 概念:(说实话,看了还是有些不太理解) git         是一种版本控制系统,是一个命令,是一种工具 g ...

  10. 十二、K3 WISE 开发插件《工业单据老单与自己添加的窗体 - 互相传值传参》

    ===================================== 目录: 1.演示效果--[销售订单]传值给[自定义窗体] 2.演示效果--[自定义窗体]传值给[销售订单] 3.附源码 4. ...