linux命令总结

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值