我的linux学习(还有待添加)

我的linux学习:

#[基本命令]+++++++++++++++++++++++++++++++++++++++++++++
ls      ls -a;ls -l;ls -sh
cd      cd -;cd ~;
mkdir      mkdir -p {dir1,dir2/{dir21,dir22}}
setup      
pwd      
ln      ln -s;
chkconfig     chkconfig --level;chkconfig --help;
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++7


#[网络]+++++++++++++++++++++++++++++++++++++++++++++++++11
tcpdump      tcpdump tcp -ni eth0 -s 0 -X port 80;
traceroute     traceroute www.google.com;-g -G
arp      arp -a
ip      ip link list;ip link set eth1 up/down;ip link show;
nc      nc --help
route      route add/del/
netconfig     netconfig
mii-tool     mii-tool -v
netstat      netstat -ntlp(n:don't resolve the host;t:tcp;u:udp;l:listening port;p:process)
iptables     iptables -A input -s 0.0.0.0/0 -p icmp -j DROP;
ping      ping hostname;
nmap      nmap -v -p3306 222.68.194.5;
wget      
nstat      # 网络信息统计
nslookup
scp      # remote copy.
ifup/ifdown [device name]
ethtool
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++

#[硬件]+++++++++++++++++++++++++++++++++++++++++++++++++
kudzu      kudzu
fdisk      fdisk -l
fsck      
dmesg      dmesg | grep eth1
mount      mount /dev/sda1 /mnt
umount      umount /mnt
lspci      显示硬件信息,含有显卡、网卡、声卡等信息

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++6

#[文本编辑]+++++++++++++++++++++++++++++++++++++++++++++
dos2unix
iconv      iconv -f gbk -t utf-8 filename
cat
cut      echo "123456789" | cut -c3-5; cut -f2 file;#打印第二列
vim
awk
sed      sed -n -e '4,5!p' filename;#打印除4-5行之间的所有行
tail      tail -f filename;tail filename;tail -10 filename;
head      
less
more
grep
find      find / -name regix;  find ./ -mtime +7; find ./ -type f -mtime +7 -exec rm {} /;
expr      expr 8 + 19;
lsof      lsof -i;#list open file
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++14

#[账户管理]+++++++++++++++++++++++++++++++++++++++++++++

chmod
chown
chgrp

who
whois
whoami

useradd      useradd newuser -g group -d homedir -p passwd
userdel
groupadd
groupdel

chroot
chattr
sudo

md5sum
umask

visudo -f /etc/sudoers
su
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++17

 

#[程序编译]++++++++++++++++++++++++++++++++++++++++++++++
gcc      gcc -L [lib path] -I [include path] -o [output] program
gdb      
make      make
cc
c++
g++

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++

#[系统性能监测]+++++++++++++++++++++++++++++++++++++++++
uptime
finger
w
top      top -p
ps
kill
killall
vmstat
free
df
du
finger
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++7

#[压缩解压]+++++++++++++++++++++++++++++++++++++++++++++
tar(tar.gz tar.bz2 tar)
gunzip
zip
unzip
compress/uncompress
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++4


#[系统信息]++++++++++++++++++++++++++++++++++++++++++++++
which
whereis      #
xhost      
uname -a
date
cal
env      
hwclock
hostname
host      host www.google.com
last      # 查看所有用户登陆服务器的情况
logname      # 查看当前最初登录的用户
lastlog      # 显示最后登录过的用户
mesg [y|n]     # 决定是否允许其他人传讯息到自己的终端机介面
minicom      # 类似于windows超级终端的linux终端工具*******
mouseconfig     # 配置鼠标
mmount      # mount a msdos disk
wc      # print the number of newlines, words and bytes in file.

ipcs
runlevel
init
alias

#+++++++++++++++++++++++++++++++++++++++++++++++++++++++


#[其他]+++++++++++++++++++++++++++++++++++++++++++++++++
diff
bc
dc
ldconfig
expr
crontab
man
htmlview
ac      #print statistics about users connect time.
ab      # 详细内容man
dd      # 输入或输出
      # dd if=[STDIN] of=[STDOUT]
      # 强迫输入或输出的Size为多少Bytes
      # bs: dd -ibs=[BYTE] -obs=[SIZE]
history
ifcfg
nl      # number line of files
nm      # 二进制文件分析工具(默认分析当前目录下的a.out文件)
perl
pstree
tr      # translate or delete characters.
touch      # change file timestamp.
sync      # 及时同步内存中与硬盘上的数据,将内存中的数据写入硬盘。
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++9


[CONFIGURATION FILE]
##[/etc]+++++++++++++++++++++++++++++++++++++++++++++++++
   /etc/host.conf
   /etc/hosts
network config file: /etc/sysconfig/network-scripts/ifcfg-eth0
rc.local:  /etc/rc.local      -> /etc/rc.d/rc.local
system dir colors: /etc/DIR_COLORS
DNS server:  /etc/resolv.conf
init level:  /etc/inittab
shared dynamic lib: /etc/ld.so.conf
password:  /etc/passwd
service:  /etc/service
shells:   /etc/shells
sysctl:   /etc/sysctl.conf
grub configuration: /etc/grub.conf
disk info:  /etc/fstab
hardware info:  /etc/sysconfig/hwconf
user permission control:/etc/sudoers


#++++++++++++++++++++++++++++++++++++++++++++++++++++++++

##[/proc]++++++++++++++++++++++++++++++++++++++++++++++++
memory info:  /proc/meminfo
cpu info:  /proc/cpuinfo
partitions info: /proc/partitions
version info:  /proc/version
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++

##[/etc/rc.d]++++++++++++++++++++++++++++++++++++++++++++
/etc/rc.d/init.d/

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值