前言:
書籍:<<鳥哥+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