Little Star Blog

路在脚下,心向远方

Linux中LVM如何格扩容硬盘

现在要求将新添加的硬盘/dev/sdb扩容到 / 目录。 第零步、磁盘基本信息检查 查看系统可用块设备以及依赖关系 root@dev:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63.9M 1 loop /snap/core20/2182 loop1

Linux中LVM如何格式化磁盘

搞Linux很久了。由于不是专业的运维对磁盘管理一直不是很清楚,最近在客户环境排查问题,需要安装新的硬盘一时半会没搞懂分区,怕搞坏了还特意请

Mingv-64安装GCC

https://link.zhihu.com/?target=http%3A//www.equation.com/servlet/equation.cmd%3Ffa%3Dfortran C:\Program Files\Git\etc\profile.d\env.sh export PATH="$HOME/gcc/bin:$PATH"

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

为什么出现 当出现ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain 时候一般是免密码登陆丢了,我们可以重新设置下免密登陆。 解决 重新生成公私钥 执行如下命令。此

如何使用stat修改文件元数据时间

修改 “修改时间” touch -mt YYYYMMDDhhmm filename 例如 touch -mt 202305181505 sysin.txt 修改 “访问时间和修改时间” touch -t YYYYMMDDhhmm filename 例如 touch -t 202205191505 sysin.txt NOW=$(date) && date -s “2023-09-05 08:00:00” && touch sysin.txt && date -s “$NOW”