linux命令总结

来源:互联网 发布:虚拟人声软件 编辑:程序博客网 时间:2024/06/10 07:43
df -lh查看ubuntu系统下挂载了多少个文件系统
ll foldername |wc -l查看foldername文件夹下有多少个文件wc  --word countl   --line
mv sourcefileOrFolder targetfolder移动文件到另一个文件夹mv既可以移动文件、文件夹。也可以重命名例如:mv wuhan wuhanold就把wuhan这个文件夹重命名为wuhanold
nohub jupyter notebook &   在本机使用虚拟环境中的jupyter notebook,nohub不挂断的运行命令,&让程序自动在后台运行
scp sharefile remote_username@remote_ip:remote_folderscp命令:secure copy在linux下远程copy文件cp只是在本机进行拷贝不能跨服务器如果copy文件夹加参数-rscp -r localfolder remote_username@remote_ip:remote_folder如果从远程的文件夹copy到本地,换一下后两个参数的位置即可scp -r remote_username@remote_ip:remote_folder localfolder
ssh remote_username@remote_ip   远程连接机器