摘要:LVM-Logical Volume Manager逻辑卷管理的一些基本概念: 用途: 在零停机前提下可以自如对文件系统的大小进行调整,可以方便实现文件系统跨越不同磁盘和分区。当系统添加了新的磁盘,通过LVM机制,管理员就不必将磁盘的文件移动到新的磁盘上以充分利用新的存储空间,而是直接扩展文件系统跨
阅读全文
摘要:1. df -hT命令 -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) -T, --print-type print file system type xfs是RHEL7版本默认的文件系统类型。
阅读全文
摘要:1.Mounting File Systems Just creating a partition and putting a file system on it is not enough to start using it. To use a partition, you have to mou
阅读全文
摘要:Adding Swap Files If you do not have free disk space to create a swap partition and you do need to add swap space urgently, you can use a swap file as
阅读全文
摘要:Creating a Swap Partition 1. Use fdisk /dev/vda to open your disk in fdisk. (Use gdisk if you are using a disk with a GUID partition table.) 2. Press
阅读全文
摘要:1、环境变量添加HISTCONTROL = ignorespace 在命令前面插入空格,这条命令会被 shell 忽略,也就意味着它不会出现在历史记录中。但是这种方法有个前提,只有在你的环境变量 HISTCONTROL 设置为 "ignorespace" 或者 "ignoreboth" 才会起作用。
阅读全文
摘要:Unix系统上使用tar命令解压tar包后,多了一个@LongLink的文件,并且原来的tar包解压后不完整。网上查了下,原因是AIX系统上tar命令自身的一个缺陷。解决办法:把该tar包上传到linux主机上,在Linux上tar -xvf test.tar解包;用zip重新打包,zip -rv
阅读全文
摘要:For common process management tasks, top is so great because it gives an overview of the most active processes currently running (hence the name top).
阅读全文
摘要:The Linux kernel allows many signals to be sent to processes. Use man 7 signals for a complete overview of all the available signals. Three of these s
阅读全文
摘要:Adjusting Process Priority with nice When Linux processes are started, they are started with a specific priority. By default, all regular processes ar
阅读全文
摘要:1. ps aux If you are looking for a short summary of the active processes, use ps aux 2. ps -ef If you are not only looking for the name of the process
阅读全文
摘要:nohup 命令 用途:不挂断地运行命令。如果你正在执行一个job,并且你希望在退出帐户/关闭终端之后继续运行,可以使用nohup命令。nohup就是不挂起的意思( no hang up)。 语法:nohup Command [ Arg … ] [ & ] 描述:nohup 命令运行由 Comman
阅读全文
摘要:Managing Shell Jobs When moving jobs between the foreground and background, it may be useful to have an overview of all current jobs. To get such an o
阅读全文
摘要:1、查看网络状态systemctl status NetworkManager You can use the systemctl status NetworkManager command to verify its current status. When NetworkManager come
阅读全文
摘要:ss命令用于显示socket状态. 他可以显示PACKET sockets, TCP sockets, UDP sockets, DCCP sockets, RAW sockets, Unix domain sockets等等统计. 它比其他工具展示等多tcp和state信息. 它是一个非常实用、快速、有效的跟踪IP连接和sockets的新工具.SS命令可以提供如下信息: 所有的TCP sock...
阅读全文
摘要:Validating Network Address Configuration To verify the configuration of the network address, you need to use the ip utility. The ip utility is a moder
阅读全文
摘要:Changing User Ownership To apply appropriate permissions, the first thing to consider is ownership. To do this, there is the chown command. The syntax
阅读全文
摘要:Because users group membership is defined in two different locations, it can be difficult to find out which groups exactly a user is a member of. A co
阅读全文
摘要:1、用w命令查看当前系统登录的用户 USER —登录的用户名TTY —登录后系统分配的终端号FROM—远程主机名,即从哪儿登录来的LOGIN@—何时登录IDLE—空闲了多长时间,表示用户闲置的时间。这是一个计时器,一旦用户执行任何操作,该计时器便会被重置JCPU—和该终端(tty)连接的所有进程占用
阅读全文
摘要:1、使用passwd命令锁定与解锁账号 2、使用usermod命令锁定与解锁账号
阅读全文