美文网首页
ubuntu tips

ubuntu tips

作者: Lee_7788 | 来源:发表于2019-12-26 19:19 被阅读0次

查询进程并删除

ps -ef|grep elastic
kill -9 2345 2222

文件夹权限

给jiaqi用户 elasticsearch文件夹root权限
sudo chown -R jiaqi:root elasticsearch
-R目录下所有文件 777高权限
sudo chmod -R 777 retialx_base/

切换用户

sudo -i 切到root用户
su elasticsearch 切换为elasticsearch用户

文件&文件夹操作

mkdir custom 新建文件夹
rz 传文件到服务器
sz 下载文件到本地
rm -rf custom 删除custom及其内文件 -r文件夹 -f不显示信息
rm -f q.txt 删除文件q.txt
mv ./*.mp4 ./video 批量移动./下以.mp4结尾的文件到./video下
tar -zcvf readme.tar.gz readme.txt 打包
tar -zxvf readme.tar.gz 解包
-c 打包 -x 解包 -z 同时压缩 -v 显示信息 -f 指定压缩后名称

查看命令

du -h --max-depth=1 /path 查看/path文件夹下第一层(max-depth)大小信息
df -h 查看磁盘空间大小
df -T 分区的文件系统,占用比例
ifconfig 看ip
nvidia-smi 查看nvidia显卡状态
sudo apt install intel-gpu-tools
intel_gpu_abvt
intel_gpu_time
intel_gpu_top ->命令,查看intel显卡状态
watch -n 1 sensors 以1s更新cpu sensors传感温度
pwd 查看当前路径

查看日志

tail -f catalina.out 实时
tail -n 20 catalina.out 显示最后20行

相关文章

  • bashrc和profile区别

    tips:使用的 ubuntu 系统,其他系统不清楚

  • mac ssh连接window虚拟机vmware内的ubuntu

    ubuntu开启ssh服务(默认打开的端口是22) tips ubuntu查看端口命令:netstat -tunl...

  • Ubuntu tips

    截屏并保存到剪切板:Shift+PrintScreen 安装 .bundle文件 设置私密文件夹 强制关闭程序

  • Ubuntu Tips

    清除Ubuntu的Application缓存 设置RTC时间 在安装Ubuntu双系统的情况下,Ubuntu的时间...

  • ubuntu tips:

    Ctrl+D Add Bookmark free && sync && echo 3 > /proc/sys/v...

  • ubuntu tips

    File recoding recent activities: ~/.local/share/recently-...

  • ubuntu tips

    查询进程并删除 ps -ef|grep elastickill -9 2345 2222 文件夹权限 给jiaqi...

  • ubuntu apt 换源

    tips: 阿里源文件:[https://developer.aliyun.com/mirror/ubuntu?s...

  • Ubuntu Tips and Tricks

    未经许可请勿转载。Please do not reprint this article without permi...

  • Virtualbox 虚拟机组建局域网

    添加 3 个虚拟机,统一安装 Ubuntu Server 14.04 LTS Tips ifconfig 查看激活...

网友评论

      本文标题:ubuntu tips

      本文链接:https://www.haomeiwen.com/subject/jieloctx.html