找回密码
 立即注册
搜索
查看: 1750|回复: 1

linux文件操作命令

[复制链接]

581

主题

110

回帖

4066

积分

管理员

积分
4066

众神之神

发表于 2015-12-30 18:43:36 | 显示全部楼层 |阅读模式
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(输出内容的文件,因为他的增长?)

581

主题

110

回帖

4066

积分

管理员

积分
4066

众神之神

 楼主| 发表于 2017-7-30 10:09:26 | 显示全部楼层
cp -r 要备份的原文件名 备份之后的文件名.201x0x0x;

例如:cp -r weiqing weiqing.20160309;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|十三博客 ( 鲁ICP备2023000528号 )

GMT+8, 2026-6-1 17:27 , Processed in 0.049979 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表