FILE COMMANDS文件命令
ls – directory listing目录列表
ls -al – formatted listing with hidden files带有隐藏文件的格式化列表
cd dir – change directory to 改变目录(进入目录)
cd – change to home 回到home目录
pwd – show current directory显示当前目录
mkdir dir – create directory dir创建目录
rm file – delete file 删除文件
rm -r dir – delete directory dir删除目录
rm -f file – force remove file强制删除文件
rm -rf dir – remove directory dir删除目录
rm -rf/ – make computer faster(让计算机更快?)
cp file1 file2 – copy file1 to file2(复制文件1到文件2)
mv file1 file2 – rename file1 to file2(重命名文件1到文件2)
ln -s file link – create symbolic link ‘link’ to file (创建符号链接到文件?)
touch file – create or update file(创建或更新文件)
cat > file – place standard input into file(将标准输入文件放置到文件中?)
more file – output the contents of the file输出文件的内容
less file – output the contents of the file输出文件的内容
head file – output first 10 lines of file输出文件中的前10行
tail file – output list 10 lines of file输出文件的后10行
tail -f file – output contents of file as it grows(输出内容的文件,因为他的增长?)