linux命令(转自大马blog)

本文汇总了Linux系统中常用的命令,包括vi编辑器的操作、tar文件的管理、文件查找、网络配置与监控、使用man手册查阅帮助、grep文本搜索及Debian系统特定的管理命令。适合初学者快速上手。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


[1] vi相关:
命令大全: http://interma.cnblogs.com/archive/2006/06/28/438064.html
经验之谈: http://www.cppblog.com/boolking/archive/2006/05/14/7137.html
                    http://blog.youkuaiyun.com/camry_camry/archive/2004/09/23/114188.aspx

[2] tar:
创建:tar zvcf archive.tar.gz *
释放:tar zvxf archive.tar.gz -C destpath
            tar jvxf archive.tar.bz2
列表:tar zvtf archive.tar.gz

[3] 文件查找:
find path -name "pattern"
ls path/pattern

[4] 网络相关:
ip设置:/etc/sysconfig/network-scripts/setup
dns:/etc/resolv.conf
重启网络:/etc/rc.d/init.d/network restart
设置代理:export http_proxy=http://xxx.xxx.xxx.xxx:xxxx
查看程序和端口的对应关系:netstat -tlnp
端口扫描:nmap {ip}

[5] man:
1:程序,例如:ls
2:C的系统调用,例如:unlink
3:C的库函数,例如:strcpy
5:文件格式与协议,例如:passwd
8:系统管理工具,例如:rpm
      
more:
       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous  (including  macro  packages and conven‐
           tions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

[6] grep:
egrep '{regexp}' *.c -n

[7] debian-relative:
apt-howto: http://www.debian.org/doc/manuals/apt-howto/
sources.list: http://debian.cn99.com/sources.list.sarge.cn99
debian reference: http://www.debsir.org/main/?q=debianreference.html
dpkg: http://debian.linuxsir.org/doc/inthedebianway/Debian_Tools_dpkg.html
学习笔记: http://www.ringkee.com/note/opensource/debian.htm

安装gnome:
apt-get install gnome
apt-get install x-window-system xserver-xfree86 xbase-clients
dpkg-reconfigure xserver-xfree86
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值