linux 文件浏览器

你为什么要学习? (Why would you want to learn?)

Linux is probably the most used operating system when it comes to development. For a developer, Linux provides all the required tools. Learning how to navigate the Linux file system can really benefit if you plan on using Linux as your primary operating system or for development purpose. The Linux command line is a very powerful tool that makes it easy and fast to access files on the system.

在开发方面,Linux可能是最常用的操作系统。 对于开发人员,Linux提供了所有必需的工具。 如果计划将Linux用作主要操作系统或用于开发目的,那么学习如何导航Linux文件系统将真正受益。 Linux命令行是一个非常强大的工具,可以轻松快速地访问系统上的文件。

Linux文件系统 (The Linux File System)

Linux organizes its files in a hierarchical directory structure. The files are organized in a tree-like manner. The directories may contain files and other directories. The first directory in the Linux file system is the root directory (named as a /). The root directory is the parent of all other directories in the file system. It contains files and sub-directories, which contain more files and sub-directories and so on.

Linux以分层目录结构组织其文件。 这些文件以树状方式组织。 这些目录可能包含文件和其他目录。 Linux文件系统中的第一个目录是根目录 (名为/ )。 根目录是文件系统中所有其他目录的父目录。 它包含文件和子目录,其中包含更多文件和子目录,依此类推。

Fig. 1: The contents of Root Directory.

图1:根目录的内容。

基本命令 (Basic Commands)

1) pwd: print the name of the current working directory on the terminal

1)pwd:在终端上打印当前工作目录的名称

To check which directory we are currently working in, we can use the "pwd" command. This command prints the absolute path of the current/working directory.

要检查我们当前在哪个目录中,可以使用“ pwd”命令 。 此命令显示当前/工作目录的绝对路径。

When we log in to the system, our current working directory is set to our home directory. Each user is assigned its own home directory where he writes his files.

当我们登录到系统时,我们当前的工作目录被设置为我们的主目录 。 每个用户都被分配有自己的主目录,他在其中写入文件。

2) ls: list the contents of the current working directory

2)ls:列出当前工作目录的内容

To see what files we have in the current working directory we can use the "ls" command.

要查看当前工作目录中有哪些文件,可以使用“ ls”命令

3) cd: change directory

3)cd:更改目录

To change our current working directory we use "cd" command. To change the current working directory type "cd" followed by the pathname of the new directory to which you want to go. A pathname is a route that we take to reach a particular directory. Pathnames can be specified in two ways:

要更改当前的工作目录,请使用“ cd”命令 。 要更改当前的工作目录,请键入“ cd”,后跟要转到的新目录的路径名。 路径名是我们到达特定目录所采用的路由。 可以通过两种方式指定路径名

Absolute Pathnames

绝对路径名

An absolute pathname begins with the root directory and follows the tree structure until the path to the desired directory is reached. For example, if I want to reach the directory bin in the usr directory which is a part of the root directory, the absolute pathname would be "/usr/bin".

绝对路径名从根目录开始,并遵循树结构,直到到达所需目录的路径为止。 例如,如果我想到达usr目录(它是根目录的一部分)中的目录bin ,则绝对路径名为“ / usr / bin”

Relative Pathnames

相对路径名

Unlike absolute pathnames which start from the root directory, Relative pathnames start from the working directory. Linux uses two particular symbols to represent the current directory and its parent directory in the file system. These are the "." and ".." symbols.

与绝对路径名从根目录开始不同,相对路径名从工作目录开始。 Linux使用两个特殊的符号表示文件系统中的当前目录及其父目录。 这些是“。”“ ..”符号。

The "." symbol refers to the working directory and the ".." symbol refers to the parent directory of the working directory. Let's see this.

“。” 符号是工作目录, “ ..”符号是工作目录的父目录。 让我们看看这个。

pwd : /usr/bin

密码:/ usr / bin

Let's change our working directory i.e., /usr/bin to its parent directory which is /usr. We can do this as:

让我们将工作目录(即/ usr / bin)更改为其父目录/ usr 。 我们可以这样做:

(a) Using absolute pathname

(a)使用绝对路径名

(b) Using relative pathname

(b)使用相对路径名

主目录的快捷方式 (A shortcut to home directory)

The "~" symbol represents the home directory of the user. So we can use this symbol to directly go to the home directory or list its contents with ls.

“〜”符号代表用户的主目录。 因此,我们可以使用该符号直接转到主目录或使用ls列出其内容。

Summing Up

加起来

In this article we saw how shell treats the Linux File System. We also learned about absolute and relative pathnames and the basic commands that are used move about the file system.

在本文中,我们了解了shell如何处理Linux文件系统 。 我们还了解了绝对路径名相对路径名以及在文件系统中使用基本命令

翻译自: https://www.includehelp.com/linux/navigating-linux-file-system.aspx

linux 文件浏览器

linux 文件浏览器_浏览Linux文件系统相关推荐

  1. Linux文件关联详解 linux 修改默认文件关联打开程序

    linux 修改默认文件关联打开程序 从总体上讲 /etc/gnome/defaults.list 保存了全局的打开方式 /.local/share/applications/mimeapps.lis ...

  2. linux文件权限对应数字,linux文件权限更改命令chmod及数字权限

    chmod -change file mode bits :更改文件权限 chmod是用来改变文件或者目录权限的命令,但只有文件的属主和超级用户(root)才有这种权限. 更改文件权限的2种方式: 一 ...

  3. linux文件的权限模式,Linux文件权限和访问模式

    为了更加安全的存储文件,Linux为不同的文件赋予了不同的权限,每个文件都拥有下面三种权限: 所有者权限:文件所有者能够进行的操作 组权限:文件所属用户组能够进行的操作 外部权限(其他权限):其他用户 ...

  4. window linux传输工具,window与linux文件传输工具,linux文件传输

    window与linux文件传输工具,linux文件传输 window与linux文件传输工具 [一般用于SecureCRT ssh中使用] 法一:直接用yum安装lrzsz(推荐) yum inst ...

  5. Linux文件的rwx含义,Linux文件权限rwx简单了解

    Ⅰ  了解Linux下的文件权限 如上图所示,ll命令详细展示当前目录下的文件或者子目录信息 红框标注的即为此文件或者目录的权限 [第一行文件10.c的权限以-开头,用来说明这是一个文件:第四行cod ...

  6. linux 终端 浏览器_如何使用W3M从Linux终端浏览

    linux 终端 浏览器 W3M is a terminal web browser for Linux. It's got a few tricks up its sleeve, including ...

  7. Linux内核开发_将Linux内核打包成img文件

    接着之前两个文章我们已经编译了Linux内核和制作了一个文件系统 这一步我们将它们打包成一个img软盘文件 1.使用DD命令创建一个镜像的img文件 sudo dd if=/dev/zero of=m ...

  8. linux文件系统研究与设计,Linux下实时文件系统的设计

    刘炜东,张玉生,康卫,胡爱兰 (华北计算机系统工程研究所,北京 100083) 摘要:Linux下常见的十余种文件系统的实时性都不理想.针对归档存储数据的特点,提出一种实时文件系统设计方案,并且设计了 ...

  9. delphi 监控文件变化_监控Linux文件变化,防止系统被黑

    运维服务器比较头疼的一个问题是系统被黑,沦为肉鸡或者矿机.除了加强安全基线配置,加强网络和端口加固,系统和应用bug修复,上IDS/IPS(入侵检测/防御系统)之外,另一个方面就是系统监控,一个完善准 ...

最新文章

  1. 1001: 整数求和
  2. 如何判断数据库中的两个表是否相同(相等)?比较数据库中的两个表是否完全相同,包括字段和每条记录
  3. 扩展基于注解的spring缓存,使缓存有效期的设置支持方法级别-redis篇
  4. 京东数科首次公开:强一致、高性能分布式事务中间件JDTX
  5. 一些 Windows 命令行学习
  6. Ubuntu返回到Gnome经典桌面!
  7. go语言中goroutine池
  8. 实例代码详解 bind(),One(),Live()
  9. 拓端tecdat|重庆住房租赁市场现状分析:解读出租房市场的数据密码
  10. 同样一句代码,在类内调用,跟类外调用结果不同?
  11. JavaWeb实现记住密码功能(使用Cookie)
  12. VS 格式化代码快捷键
  13. HTML的表单及框架
  14. Inflate使用小结
  15. BWAI学习记录003_使用Chaoslauncher和AI(Stardust)人机对战
  16. Openpose2d转换3d姿态识别
  17. 【医学图像处理】CT成像技术之CT设备
  18. 数据分析师—Excel函数篇
  19. 初学者入门学习Java,如何选择Java培训机构?
  20. 开放平台、标准接口、接口聚合的架构设计

热门文章

  1. 地理信息系统软件测试培训,地理信息系统软件测试方法技术方案
  2. android 内容显示栏,android – 在工具栏下显示内容
  3. 山海伏妖录java_山海伏妖录攻略大全 剧情结局加点妖兽大全
  4. ANSIBLE---变量
  5. Ubuntu18.04安装最新版Docker
  6. JAVA知识基础(四):深入理解static关键字
  7. 网页搜索帮助-禁止搜索引擎收录的方法
  8. CentOS7下的AIDE***检测配置
  9. 如何快速精确的和leader沟通
  10. 关于设置不同linux主机之间ssh免密登录简易方法