前言:
书籍:<<鸟哥+CentOS 7.x>>
软件:<<阿里云轻量应用服务器Ubuntu 16.04>>+<<>>
硬件:<<Ubuntu 14.x>>
因需要使用Linux平台进行白盒测试,从2020-4-9日开始接触Linux,踏入不规之路。长路漫漫
记录Linux学习的第一条命令:
cd
官方文档:
root@iZ2ze:~# help cd
cd: cd [-L|[-P [-e]] [-@]] [dir]
Change the shell working directory.
Change the current directory to DIR. The default DIR is the value of the
HOME shell variable.
The variable CDPATH defines the search path for the directory containing
DIR. Alternative directory names in CDPATH are separated by a colon (:).
A null directory name is the same as the current directory. If DIR begins
with a slash (/), then CDPATH is not used.
If the directory is not found, and the shell option `cdable_vars' is set,
the word is assumed to be a variable name. If that variable has a value,
its value is used for DIR.
Options:
-L force symbolic links to be followed: resolve symbolic links in
DIR after processing instances of `..'
-P use the physical directory structure without following symbolic
links: resolve symbolic links in DIR before processing instances
of `..'
-e if the -P option is supplied, and the current working directory
cannot be determined successfully, exit with a non-zero status
-@ on systems that support it, present a file with extended attributes
as a directory containing the file attributes
The default is to follow symbolic links, as if `-L' were specified.
`..' is processed by removing the immediately previous pathname component
back to a slash or the beginning of DIR.
Exit Status:
Returns 0 if the directory is changed, and if $PWD is set successfully when
-P is used; non-zero otherwise.
理解
cd //打开文件
好了,今天随笔,明天继续开始进行苦逼的白盒测试,同时也要向开发提交问题,又是扯皮的一天。晚安 哦对了,我学习linux目的是为了开发网站和物联网项目开发。土豆白
root@iZ2ze:~# date
Tue May 12 00:54:21 CST 2020