Linux简介

Linux最初是由来自德国慕尼黑学院的中学生LinusTorvalds发明的。因为Linux是基于GPL(GeneralPublicLicense)的构架之下,因而它是免费的,任何人都可以免费使用或则更改其中的源代码。这就是所谓的“开放性构架”sogou pinyin linux,这个开放性的构架满足了人们的不同需求,你们可以依照自己的须要来更改源代码,因而越来越流行。Linux内核的第一个版本(V1.0)在1994年发布。

Linux基本命令介绍

1.man

说明:man是Linux下的帮助指令,通过man指令可以查看Linux中的指令帮助、配置文件帮助和编程帮助等信息。

句型:man(选项)(参数)

选项:

-a:在所有的man帮助指南中搜索;

-f:等价于whatis指令,显示给定关键字的简略描述信息;

-P:指定内容时使用分页程序;

-M:指定man指南搜索的路径。

参数:

数字拿来指定从哪本man指南中搜索帮助。

关键字表示指定要搜索帮助的关键字。

linux命令手册_linux命令详解手册_linux命令手册大全安卓版

下例中示出“ls”命令的相关信息,示例仅显示其中的一部份。

[root@linux001 /] # man ls
LS(1)            User Commands 
NAME
       ls - list directory contents
SYNOPSIS
       ls [OPTION]... [FILE]...
DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
       Mandatory arguments to long options are mandatory for short options too.
       -a, --all
              do not ignore entries starting with .
       -A, --almost-all
              do not list implied . and ..
       --author
              with -l, print the author of each file
-b, --escape
              print C-style escapes for nongraphic characters
       --block-size=SIZE
              scale sizes by SIZE before printing them; e.g., '--block-size=M' prints sizes in units of 1,048,576 bytes; see SIZE format below
       -B, --ignore-backups
              do not list implied entries ending with ~
       -c     with -lt: sort by, and show, ctime (time of last modification of file status information); with -l: show ctime and sort by name; otherwise:
              sort by ctime, newest first
       -C     list entries by columns
       --color[=WHEN]
              colorize the output; WHEN can be 'never', 'auto', or 'always' (the default); more info below
       -d, --directory
              list directories themselves, not their contents
       -D, --dired
              generate output designed for Emacs' dired mode
       -f     do not sort, enable -aU, disable -ls --color
       -F, --classify
              append indicator (one of */=>@|) to entries

2.help

linux命令详解手册_linux命令手册_linux命令手册大全安卓版

说明:help命令用于显示shell内部命令的帮助信息。help命令只能显示shell内部的命令帮助信息。而对于外部命令的帮助信息只能使用man或则info命令查看。

句型:help(选项)(参数)

选项:

-s:输出短格式的帮助信息。仅包括命令格式。

参数:

内部命令:指定须要显示帮助信息的shell内部命令。

linux命令手册_linux命令详解手册_linux命令手册大全安卓版

应用示例:

[root@linux001 /] # ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first
  -C                         list entries by columns
      --color[=WHEN]         colorize the output; WHEN can be 'never', 'auto',
                               or 'always' (the default); more info below
  -d, --directory            list directories themselves, not their contents
  -D, --dired                generate output designed for Emacs' dired mode

3.cd

说明:cd命令拿来切换工作目录至dirname。其中dirName表示法可为绝对路径或相对路径。若目录名称省略linux压缩命令,则变换至使用者的homedirectory(也就是刚login时所在的目录)。另外linux命令详解手册,~也表示为homedirectory的意思,.则是表示目前所在的目录,..则表示目前目录位置的上一层目录。

句型:cd(选项)(参数)

linux命令详解手册_linux命令手册大全安卓版_linux命令手册

选项:

-p:假如要切换到的目标目录是一个符号联接,直接切换到符号联接指向的目标目录-L假如要切换的目标目录是一个符号的联接,直接切换到字符联接名代表的目录linux命令详解手册,而非符号联接所指向的目标目录。

-:当仅实用“-”一个选项时,当前工作目录将被切换到环境变量“OLDPWD”所表示的目录。

linux命令手册大全安卓版_linux命令详解手册_linux命令手册

应用示例:

[root@linux001 /] #cd ~        从任何目录跳转到用户的主目录
[root@linux001 /] #cd          从任何目录跳转到用户的主目录
[root@linux001 /] #cd /root      跳转到用户的根目录下的root文件夹
[root@linux001 /] #cd ..         返回上一级目录
[root@linux001 /] #cd ../../       返回上两级目录
[root@linux001 /] #cd ~         从任何目录跳转到用户的主目录
[root@linux001 /] #cd /         从任何目录跳转文件系统的根目录

未完待续····

Author

这篇优质的内容由TA贡献而来

刘遄

《Linux就该这么学》书籍作者,RHCA认证架构师,教育学(计算机专业硕士)。

发表回复

Linux简介

Linux最初是由来自德国慕尼黑学院的中学生LinusTorvalds发明的。因为Linux是基于GPL(GeneralPublicLicense)的构架之下linux培训机构,因而它是免费的,任何人都可以免费使用或则更改其中的源代码。这就是所谓的“开放性构架”,这个开放性的构架满足了人们的不同需求,你们可以依照自己的须要来更改源代码,因而越来越流行。Linux内核的第一个版本(V1.0)在1994年发布。

切换目录<a href="https://www.linuxcool.com" title="命令"target="_blank">命令</a>是什么_linux切换目录命令_windows切换目录命令

Linux基本命令介绍

1.man

说明:man是Linux下的帮助指令,通过man指令可以查看Linux中的指令帮助、配置文件帮助和编程帮助等信息。

句型:man(选项)(参数)

windows切换目录命令_linux切换目录命令_切换目录命令是什么

选项:

-a:在所有的man帮助指南中搜索;

-f:等价于whatis指令,显示给定关键字的简略描述信息;

-P:指定内容时使用分页程序;

-M:指定man指南搜索的路径。

参数:

数字拿来指定从哪本man指南中搜索帮助。

关键字表示指定要搜索帮助的关键字。

下例中示出“ls”命令的相关信息,示例仅显示其中的一部份。

linux切换目录命令_windows切换目录命令_切换目录命令是什么

[root@linux001 /] # man ls
LS(1)            User Commands 
NAME
       ls - list directory contents
SYNOPSIS
       ls [OPTION]... [FILE]...
DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
       Mandatory arguments to long options are mandatory for short options too.
       -a, --all
              do not ignore entries starting with .
       -A, --almost-all
              do not list implied . and ..
       --author
              with -l, print the author of each file
-b, --escape
              print C-style escapes for nongraphic characters
       --block-size=SIZE
              scale sizes by SIZE before printing them; e.g., '--block-size=M' prints sizes in units of 1,048,576 bytes; see SIZE format below
       -B, --ignore-backups
              do not list implied entries ending with ~
       -c     with -lt: sort by, and show, ctime (time of last modification of file status information); with -l: show ctime and sort by name; otherwise:
              sort by ctime, newest first
       -C     list entries by columns
       --color[=WHEN]
              colorize the output; WHEN can be 'never', 'auto', or 'always' (the default); more info below
       -d, --directory
              list directories themselves, not their contents
       -D, --dired
              generate output designed for Emacs' dired mode
       -f     do not sort, enable -aU, disable -ls --color
       -F, --classify
              append indicator (one of */=>@|) to entries

                                frombyte.com

2.help

切换目录命令是什么_linux切换目录命令_windows切换目录命令

说明:help命令用于显示shell内部命令的帮助信息。help命令只能显示shell内部的命令帮助信息。而对于外部命令的帮助信息只能使用man或则info命令查看。

句型:help(选项)(参数)

选项:

-s:输出短格式的帮助信息。仅包括命令格式。

参数:

内部命令:指定须要显示帮助信息的shell内部命令。

应用示例:

linux切换目录命令_切换目录命令是什么_windows切换目录命令

[root@linux001 /] # ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first
  -C                         list entries by columns
      --color[=WHEN]         colorize the output; WHEN can be 'never', 'auto',
                               or 'always' (the default); more info below
  -d, --directory            list directories themselves, not their contents
  -D, --dired                generate output designed for Emacs' dired mode

3.cd

说明:cd命令拿来切换工作目录至dirname。其中dirName表示法可为绝对路径或相对路径。若目录名称省略,则变换至使用者的homedirectory(也就是刚login时所在的目录)。另外linux切换目录命令,~也表示为homedirectory的意思,.则是表示目前所在的目录,..则表示目前目录位置的上一层目录。

句型:cd(选项)(参数)

windows切换目录命令_linux切换目录命令_切换目录命令是什么

选项:

-p:假如要切换到的目标目录是一个符号联接,直接切换到符号联接指向的目标目录-L假如要切换的目标目录是一个符号的联接,直接切换到字符联接名代表的目录,而非符号联接所指向的目标目录。

-:当仅实用“-”一个选项时linux切换目录命令linux软件工程师培训,当前工作目录将被切换到环境变量“OLDPWD”所表示的目录。

应用示例:

[root@linux001 /] #cd ~        从任何目录跳转到用户的主目录
[root@linux001 /] #cd          从任何目录跳转到用户的主目录
[root@linux001 /] #cd /root      跳转到用户的根目录下的root文件夹
[root@linux001 /] #cd ..         返回上一级目录
[root@linux001 /] #cd ../../       返回上两级目录
[root@linux001 /] #cd ~         从任何目录跳转到用户的主目录
[root@linux001 /] #cd /         从任何目录跳转文件系统的根目录

未完待续····

Author

这篇优质的内容由TA贡献而来

刘遄

《Linux就该这么学》书籍作者,RHCA认证架构师,教育学(计算机专业硕士)。

发表回复