chmod 改变一个或多个文件的存取模式(mode) chmod [options] mode files 只能文件属主或特权用户才能使用该功能来改变文件存取模式。mode可以是数字形式或以who opcode permission形式表示。who是可选的,默认是a(所有用户)。只能选择一个opco ...
分类:
系统相关 时间:
2016-08-15 18:42:12
阅读次数:
213
a (0)b (1)c (2) a 0b 1c 2 wartyouname:sssssss (0)s (1)s (2)s (3)s (4)s (5) 代码缩短元素赋值 We are the kingfei who say NI NI NI NIWe are the kingfei who say N ...
分类:
编程语言 时间:
2016-08-15 17:24:27
阅读次数:
152
Problem Description Once again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a near ...
分类:
其他好文 时间:
2016-08-14 18:59:48
阅读次数:
195
Linux内核作用: The Linux kernel is the heart of the operating system. It is the layer between the user who works with Linux from a shell environment and t ...
分类:
系统相关 时间:
2016-08-14 16:02:35
阅读次数:
311
1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。who|cut-d‘‘-f1|uniq2、取出最后登录到当前系统的用户的相关信息。who|tail-1|cut-d‘‘-f1|id3、取出当前系统上被用户当作其默认shell的最多的那个shell。cat/etc/passwd|cut-d:-f7|..
分类:
其他好文 时间:
2016-08-13 14:19:40
阅读次数:
161
When working on a file, we often want to know who made certain changes last; we can use git blame to see details about the last modification of each l ...
分类:
其他好文 时间:
2016-08-12 06:40:28
阅读次数:
146
1、查看系统在线用户 [root@testdb ~]#w 2.查看哪个属于此时自己的终端(我开了两个连接) [root@testdb ~]# who am i 3.pkill掉自己不适用的终端 [root@testdb ~]# pkill -kill -t pts/1 pts/1是其他用户名 pki ...
分类:
系统相关 时间:
2016-08-11 17:25:42
阅读次数:
231
DescriptionBackground
Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the pl...
分类:
其他好文 时间:
2016-08-09 19:09:46
阅读次数:
174
问题链接:HDU1157 POJ2338 Who's
in the Middle。基础级练习题,用C语言编写程序。
题意简述:输入n,然后输入n个整数,求这n个整数中大小位于中间的数。
问题分析:使用分治法,用求第k大数算法实现。
AC的C语言程序如下:
/* HDU1157 POJ2338 Who's in the Middle */
#include
#def...
分类:
其他好文 时间:
2016-08-09 07:06:58
阅读次数:
146
linux终端分为物理终端,伪终端,串行终端,虚拟终端物理终端:/dev/console伪终端(远程终端图形下的终端):/dev/pts/#(数字)虚拟终端:/dev/tty#串行终端:/dev/ttys#startx启动图形界面ctrl+c取消正在执行的命令shift+pageup/pagedown在命令界面翻屏tty命令显示当前终端对应..
分类:
系统相关 时间:
2016-08-09 00:37:59
阅读次数:
595