1. 程式人生 > >linux文件與目錄管理

linux文件與目錄管理

verbose erb creat 包括 chm ror nbsp -m ons

  • pwd

Print the full filename of the current working directory.打印當前工作目錄

-L, --logical
use PWD from environment, even if it contains symlinks  # 顯示當前路徑包括link路徑

-P, --physical  # 顯示當前路徑而非使用link路徑
avoid all symlinks

  • mkdir

Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options
too.

-m, --mode=MODE  #配置文件的權限。直接設置,不需要看默認權限
set file mode (as in chmod), not a=rwx - umask

-p, --parents
no error if existing, make parent directories as needed

-v, --verbose
print a message for each created directory

linux文件與目錄管理