美文网首页
2023-07-26 Ubuntu使用记录

2023-07-26 Ubuntu使用记录

作者: 笑忘书v | 来源:发表于2023-07-25 22:29 被阅读0次

1.查找字母,数字开头的文件,移动到上级目录om

find ./ -name '[A-Z]*' -type d | xargs -I % sh -c "mv '%' ./om"
find ./ -name '[0-9]*' -type d | xargs -I % sh -c "echo '%' "
find ./ -name '[a-z]*' -type d | xargs -I % sh -c "echo '%' "
find ./ -name '[0-9]*' -type d | xargs -I % sh -c "mv '%' ./om".

2.删除当前目录下的空目录

find ./ -type d -empty -delete

3.写入dns :

echo "nameserver 223.5.5.5" >>/etc/resolv.conf

4.写入清华源:

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
" >/etc/apt/sources.list 

5.挂载ntfs文件系统:

mount -t ntfs-3g -o uid=root,gid=root,fmask=133,dmask=022 /dev/sda1 /media/one 
mount /dev/sdb1 /media/two/ 

6.文件权限:

权限.png

7.解压,压缩:

打包和压缩:tar -zcvf 文件名 目录 z通过gzip指令处理备份文件;
解压缩:tar -xzvf 文件名 x从备份文件中还原文件;v显示操作过程;f指定备份文件;-f指定包的文件名
sed -i "/hello/s#/g#'/g#g" pictures.txt | grep hello

相关文章

  • ubuntu使用记录

    1、 点击Dock应用图标最小化窗口 安装完ubuntu后,默认情况点击Dock应用图标是不能最小化窗口的,必须开...

  • Ubuntu 使用记录

    背景 切换软件源 安装搜狗输入法 修改DNSserver Sublime 安装及激活

  • Ubuntu使用记录

    首先摆上Ubuntu论坛,有问题多搜索提问! 1.sublime无法输入中文 https://github.com...

  • 2018-08-19

    ubuntu爬坑 该blog用来记录在使用ubuntu的过程中出现的坑。 使用蓝牙搜索不到蓝牙设备 参考blog ...

  • ubuntu使用日记

    本文会持续跟新记录一些ubuntu系统的使用记录,enjoy :) 2018年2月11 为自己的ubuntu加上实...

  • Ubuntu 16.04 上使用Nginx、 Gunicorn、

    本文记录Ubuntu 16.04 上使用Nginx、 Gunicorn、supervisor 部署django项目...

  • ubuntu桌面使用记录

    修改apt软件包资源 https://www.cnblogs.com/tlz888/p/9569234.html ...

  • Ubuntu14.04安装Odoo10社区版 Deb

    Ubuntu安装记录 更新命令 下载安装wkhtmltopdf(Odoo使用wkhtmltopdf来输出pdf):...

  • Ubuntu操作指南 - 安装系统

    前言 最近,开始折腾ubuntu系统,专门记录自己的使用笔记。长话短说,进入正题! 准备工作 ubuntu系统(I...

  • Ubuntu安装完成之后要做的事

    电脑上通过VMware安装了Ubuntu18.04,这里记录一下Ubuntu安装完毕之后要做的事情,以备下次使用目...

网友评论

      本文标题:2023-07-26 Ubuntu使用记录

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