df -lh
查看ubuntu系统下挂载了多少个文件系统
ll foldername |wc -l
查看foldername文件夹下有多少个文件
wc
l
lsof -i tcp:port (port替换成端口号,比如6379)可以查看该端口被什么程序占用,并显示PID,方便KILL
mv sourcefileOrFolder targetfolder
移动文件到另一个文件夹
mv既可以移动文件、文件夹。也可以重命名
例如:
mv wuhan wuhanold
就把wuhan这个文件夹重命名为wuhanold
nohub jupyter notebook & 在本机使用虚拟环境中的jupyter notebook,nohub不挂断的运行命令,&让程序自动在后台运行
scp sharefile
scp命令:secure copy在linux下远程copy文件
cp只是在本机进行拷贝不能跨服务器
如果copy文件夹加参数-r
scp -r localfolder
如果从远程的文件夹copy到本地,换一下后两个参数的位置即可
scp -r
ssh remote_username@remote_ip 远程连接机器