加载中
delete all line in VIM

Problem To delete all the lines of a file that is open in Vim. Solution Type gg to move the cursor to the first line of the file, if it is not already there. Type dG to delete a...

2014/09/23 11:07
23
Windows 环境变量

ver systeminfo OS

2014/08/13 10:13
4
五个查看linux内存的命令

1. free 2.cat /proc/meminfo 3.vmstat -s 4.top 5.htop

2014/05/15 10:51
6
os change folder owner/group

root@localhost conf]# chown -R root /var/www/html [root@localhost conf]# chgrp -R root /var/www/html...

2014/04/26 10:35
10
yum list

yum list查看yum里提供的package yum list|grep installed查看已安装的

2014/04/26 08:20
12
删除超过一定时间的日志

find . -name '*log*' -type f -mtime +1 | xargs rm Actually, date ranges in the find command do not work quite how you expect them to. 1 means 24 hours old -1 means less than 24 ...

2014/04/25 17:31
9
elinks setsebool

elinks setsebool

2014/04/20 17:55
13
获得rpm立的文件

rpm2cpio rpmfile.rpm | cpio -ivd unzip *.ear to unzip这个ear文件

2014/04/14 11:37
6
The grep Command

The grep Command grep is used to search text for patterns specified by the user. It is one of the most useful and powerful commands on Linux and other Unix-like operating system...

2014/04/08 09:53
43
将当前登录用户去重显示。

users | tr ' ' '\n' | sort | uniq

2014/03/28 17:20
11
查看最大的10个文件

$du -ak /home/slynux | sort -nrk 1 | head -n 10 find . -type f -exec du -k {} \; | sort -nrk 1 | head -n 10...

2014/03/28 15:28
16
Linux: Find Out Directory Size Command

I am a new Linux user. How do I find out size of a directory on Linux operating systems using command line options? You need to use the du command: [a] Find and estimate file sp...

2014/03/28 15:02
18
为什么用ls和du显示出来的文件大小有差别?

曾经有几次,我用ls和du查看一个文件的大小,发现二者显示出来的大小并不一致,例如: bl@d3:~/test/sparse_file$ ls -l fs.img -rw-r--r-- 1 bl bl 1073741824 2012-02-17 05:09 fs.img bl@...

2014/03/28 14:31
47
put the process in background

To place a foreground process in the background: suspend the foreground process (with Ctrl-z ) then enter the bg command to move the process into the background. Ctrl+z 相当于向...

2014/03/28 13:52
17
why is the output of `du` often so different from

why is the output of du often so different from du -b? -b is shorthand for --apparent-size --block-size=1. only using --apparent-size gives me the same result most of the time, ...

2014/03/28 11:47
5
TOP, unknown terminal type

export TERM=xterm (or export TERM=vt100) top again, ok

2014/03/27 10:41
120
图解linux下top命令的使用

top命令经常用来监控linux的 系统状况,比如cpu、内存的使用,程序员基本都知道这个命令,但比较奇怪的是能用好它的人却很少,例如top监控视图中内存数值的含义就有不少的曲解。 本文通过一个...

2014/03/27 10:34
15
tail命令

查看文件内容的特殊方法   相信最基本的cat和less,more你已经很熟悉了,如果有特殊的要求呢: 1. 如果你只想看文件的前5行,可以使用head命令,如: head -5 /etc/passwd 2. 如果你想查看文...

2014/03/27 10:29
44
CMD常用命令

ADDUSERS Add or list users to/from a CSV file ADmodcmd Active Directory Bulk Modify ARP Address Resolution Protocol ASSOC Change file extension associations• ASSOCIAT One step ...

2014/03/13 10:17
1K
sudo & su

In Unix, what are the sudo and su commands? The Unix commands sudo and su allow access to other commands as a different user. The sudo command The sudo command stands for "super...

2014/03/04 09:20
15

没有更多内容

加载失败,请刷新页面

返回顶部
顶部