linux 常用命令
-
文件处理命令
(1) ls
ls 命令的原本的意识就是list,目的是用于列出参数的属性信息 ls [选项] [参数] 选项 -l 以详细信息的形式展示当前目录下的文件 -a 显示全部文件 -d 查看目录属性 -t 按创建时间顺序列出文件 -i 输出文件的inode编号 -R 列出全部文件信息 案例 1 [ken@localhost] ls [ken@localhost] ls -a [ken@localhost] ls -l
(2) cd
cd 的原本意识就是change directory 更改目录 案例 2 [ken@localhost] cd ./Public
(3) pwd
pwd 意思是 print working directory 打印当前工作目录的绝对路径 案例 3 [ken@localhost] pwd
(4) touch
touch 将已有的文件的时间标签更新为系统当前时间
还有创建空文件的作用案例 4 [ken@localhost] ls -l file [ken@localhost] touch file [ken@localhost] ls -l file
(5) mkdir
mkdir 意思是 make directory 创建目录选项