06 2016 档案

在top命令下kill和renice进程
摘要: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). 阅读全文

posted @ 2016-06-29 11:01 遠離塵世の方舟 阅读(750) 评论(0) 推荐(0)

Sending Signals to Processes with kill, killall, and pkill
摘要: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 阅读全文

posted @ 2016-06-29 10:55 遠離塵世の方舟 阅读(527) 评论(0) 推荐(0)

使用nice命令调整进程优先级
摘要:Adjusting Process Priority with nice When Linux processes are started, they are started with a specific priority. By default, all regular processes ar 阅读全文

posted @ 2016-06-28 16:48 遠離塵世の方舟 阅读(1326) 评论(0) 推荐(0)

几个常用的ps命令
摘要: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 阅读全文

posted @ 2016-06-28 15:33 遠離塵世の方舟 阅读(311) 评论(0) 推荐(0)

linux nohup命令
摘要:nohup 命令 用途:不挂断地运行命令。如果你正在执行一个job,并且你希望在退出帐户/关闭终端之后继续运行,可以使用nohup命令。nohup就是不挂起的意思( no hang up)。 语法:nohup Command [ Arg … ] [ & ] 描述:nohup 命令运行由 Comman 阅读全文

posted @ 2016-06-28 11:35 遠離塵世の方舟 阅读(2358) 评论(0) 推荐(0)

Managing linux Shell Jobs
摘要: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 阅读全文

posted @ 2016-06-28 10:15 遠離塵世の方舟 阅读(365) 评论(0) 推荐(0)

Configuring Network Configuration-RHEL7
摘要:1、查看网络状态systemctl status NetworkManager You can use the systemctl status NetworkManager command to verify its current status. When NetworkManager come 阅读全文

posted @ 2016-06-27 16:57 遠離塵世の方舟 阅读(1338) 评论(0) 推荐(0)

linux 网络状态工具ss命令
摘要:ss命令用于显示socket状态. 他可以显示PACKET sockets, TCP sockets, UDP sockets, DCCP sockets, RAW sockets, Unix domain sockets等等统计. 它比其他工具展示等多tcp和state信息. 它是一个非常实用、快速、有效的跟踪IP连接和sockets的新工具.SS命令可以提供如下信息: 所有的TCP sock... 阅读全文

posted @ 2016-06-24 17:35 遠離塵世の方舟 阅读(456) 评论(0) 推荐(0)

RHEL7查看网卡配置命令ip addr show
摘要: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 阅读全文

posted @ 2016-06-24 16:17 遠離塵世の方舟 阅读(12515) 评论(0) 推荐(0)

chmod -R o+rX /data
摘要: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 ... 阅读全文

posted @ 2016-06-24 10:09 遠離塵世の方舟 阅读(1004) 评论(0) 推荐(0)

linux命令chown修改文件所有权
摘要:Changing User Ownership To apply appropriate permissions, the first thing to consider is ownership. To do this, there is the chown command. The syntax 阅读全文

posted @ 2016-06-23 17:23 遠離塵世の方舟 阅读(811) 评论(0) 推荐(0)

linux groupmems命令
摘要: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 阅读全文

posted @ 2016-06-23 15:03 遠離塵世の方舟 阅读(1777) 评论(0) 推荐(0)

linux系统中中断已连接的用户
摘要:1、用w命令查看当前系统登录的用户 USER —登录的用户名TTY —登录后系统分配的终端号FROM—远程主机名,即从哪儿登录来的LOGIN@—何时登录IDLE—空闲了多长时间,表示用户闲置的时间。这是一个计时器,一旦用户执行任何操作,该计时器便会被重置JCPU—和该终端(tty)连接的所有进程占用 阅读全文

posted @ 2016-06-21 19:19 遠離塵世の方舟 阅读(2719) 评论(0) 推荐(0)

linux系统用户锁定与解锁
摘要:1、使用passwd命令锁定与解锁账号 2、使用usermod命令锁定与解锁账号 阅读全文

posted @ 2016-06-21 14:46 遠離塵世の方舟 阅读(50272) 评论(0) 推荐(2)

passwd命令限制用户密码到期时间
摘要:1.passwd命令 2.chage -l命令 Showing Password Expiry Information with chage -l 如果时间小于(Minimum number of days between password change : 3),则不允许修改密码。 阅读全文

posted @ 2016-06-21 14:44 遠離塵世の方舟 阅读(2633) 评论(0) 推荐(0)

与useradd命令相关的两个默认配置文件
摘要:Configuration Files for User Management Defaults When working with tools as useradd, some default values are assumed. These default values are set in 阅读全文

posted @ 2016-06-17 14:51 遠離塵世の方舟 阅读(471) 评论(0) 推荐(0)

vipw和vigr命令
摘要: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 阅读全文

posted @ 2016-06-17 11:00 遠離塵世の方舟 阅读(2333) 评论(0) 推荐(0)

linux sudo命令
摘要:sudo Instead of using the root user account, unprivileged users can be configured for using administrator permissions on specific tasks by using sudo. 阅读全文

posted @ 2016-06-16 16:27 遠離塵世の方舟 阅读(929) 评论(0) 推荐(0)

linux中切换用户方式su和su -的区别
摘要: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... 阅读全文

posted @ 2016-06-16 16:20 遠離塵世の方舟 阅读(548) 评论(0) 推荐(0)

ls Common Command-Line Options
摘要: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... 阅读全文

posted @ 2016-06-16 16:10 遠離塵世の方舟 阅读(253) 评论(0) 推荐(0)

Counting Lines, Words, and Characters with wc
摘要:Counting Lines, Words, and Characters with wc When working with text files, you sometimes get a large amount of output. Before deciding which approach 阅读全文

posted @ 2016-06-16 15:08 遠離塵世の方舟 阅读(303) 评论(0) 推荐(0)

Sorting File Contents and Output with sort
摘要: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 阅读全文

posted @ 2016-06-16 11:14 遠離塵世の方舟 阅读(240) 评论(0) 推荐(0)

Filtering Specific Columns with cut
摘要: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 阅读全文

posted @ 2016-06-16 10:51 遠離塵世の方舟 阅读(205) 评论(0) 推荐(0)

tail和head命令
摘要:[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 ... 阅读全文

posted @ 2016-06-16 10:33 遠離塵世の方舟 阅读(1178) 评论(0) 推荐(0)

wildcard
摘要:[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... 阅读全文

posted @ 2016-06-15 16:04 遠離塵世の方舟 阅读(166) 评论(0) 推荐(0)

mount, findmnt,df命令
摘要:■ 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 阅读全文

posted @ 2016-06-15 15:27 遠離塵世の方舟 阅读(453) 评论(0) 推荐(0)

/etc/motd and /etc/issue
摘要:/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 阅读全文

posted @ 2016-06-15 11:21 遠離塵世の方舟 阅读(307) 评论(0) 推荐(0)

Environment Configuration Files
摘要:Environment Configuration Files When a user logs in, an environment is created for that user automatically. This happens based on four different files 阅读全文

posted @ 2016-06-15 10:41 遠離塵世の方舟 阅读(185) 评论(0) 推荐(0)

-bash: ulimit: open files: cannot modify limit: Operation not permitted
摘要:普通用户登录系统报错,提示: -bash: ulimit: open files: cannot modify limit: Operation not permitted. 处理方法: #vi /etc/ssh/sshd_config --使用root账号修改UseLoin 为yes UseLog 阅读全文

posted @ 2016-06-06 14:39 遠離塵世の方舟 阅读(11806) 评论(0) 推荐(0)

导航