摘要: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
阅读全文
摘要:When using chmod -R o+rx /data , you set the execute permission on all directories as well as files in the /data directory. To set the execute permission to directories only, and not to files, use ...
阅读全文
摘要: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命令锁定与解锁账号
阅读全文
摘要:1.passwd命令 2.chage -l命令 Showing Password Expiry Information with chage -l 如果时间小于(Minimum number of days between password change : 3),则不允许修改密码。
阅读全文
摘要:Configuration Files for User Management Defaults When working with tools as useradd, some default values are assumed. These default values are set in
阅读全文
摘要:Modifying the Configuration Files To add user accounts, it suffices that one line is added to /etc/passwd and another line is added to /etc/shadow, in
阅读全文
摘要:sudo Instead of using the root user account, unprivileged users can be configured for using administrator permissions on specific tasks by using sudo.
阅读全文
摘要:Using su The su command allows users to open a terminal window, and from that terminal start a sub shell in which the user has another identity. To perform administrative tasks, for insta...
阅读全文
摘要:ls Common Command-Line Options Command Use: ls -l Shows a long listing, which includes information about file properties, such as creation date and permissions. ls -a Shows all fil...
阅读全文
摘要:Counting Lines, Words, and Characters with wc When working with text files, you sometimes get a large amount of output. Before deciding which approach
阅读全文
摘要:Sorting File Contents and Output with sort Another very useful command to use on text file is sort . As you can probably guess, this command sorts tex
阅读全文
摘要:Filtering Specific Columns with cut When working with text files, it can be useful to filter out specific fields. Imagine that you need to see a list
阅读全文
摘要:[root@rhel7 ~]# cat rusky --cat命令查看文件内容 line1 line2 line3 line4 line5 line6 line7 line8 line9 line10 [root@rhel7 ~]# tail -n 3 rusky --查看最后3行内容 line8 line9 line10 [root@rhel7 ~]# tail -3 rusky ...
阅读全文
摘要:[rusky@rhel7 test]$ lstest1 test123 test2 test317 test33 test335 test336 test44 testtest[rusky@rhel7 test]$ ls test?3test33[rusky@rhel7 test]$ ls test??3test123[rusky@rhel7 test]$ ls test...
阅读全文
摘要:■ The mount command gives an overview of all mounted devices. To get this information, the /proc/mounts file is read, where the kernel keeps informati
阅读全文
摘要:/etc/motd and /etc/issue Bash offers an option to include messages in the /etc/motd and the /etc/issue files. Messages in /etc/motd display after a us
阅读全文
摘要:Environment Configuration Files When a user logs in, an environment is created for that user automatically. This happens based on four different files
阅读全文
摘要:普通用户登录系统报错,提示: -bash: ulimit: open files: cannot modify limit: Operation not permitted. 处理方法: #vi /etc/ssh/sshd_config --使用root账号修改UseLoin 为yes UseLog
阅读全文