ubuntu系统管理笔记history -c 删除历史history -r aaa.txt从文件读★★★★★★★★★★★★★★★★★★★★vi /etc/sysconfi
ubuntu系统管理笔记
history -c 删除历史
history -r aaa.txt从文件读
★★★★★★★★★★★★★★★★★★★★
vi /etc/sysconfig/iptables
防火墙设置
/etc/rc.d/init.d/iptables stop 关闭防火墙
chkconfig --list|grep iptables
iptables -F
# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
# iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT
★★★★★★★★★★★★★★★★★★★
互信:
find p46
locate
打包p48
bzip2 bunzip2 bzip2reover gzip gunzip unzip compress tar
diff p51 比较
ftp p58
xinetd p66 /etc/xinetd.conf
chkconfig --list|grep ntpd
chkconfig --level 3 ntpd on
p85 gcc
预处理gcc -E helloworld.c -o hello.i
编译阶段 gcc -S hello.i -o hello.s
汇编阶段 gcc -c hello.c -o hello.o
连接阶段 gcc hello.o -o hello
gcc编译选项分析 p88
make p101 p110
第四章:嵌入式系统基础
第六章:文件io编程 p192
标准输入、标准输出和标准出错处理
swap
grub
文件系统 P22
-dlcbpf
Linux目录结构 P23
su P31
常见环境变量
PATH,HOME,HISTSIZE★,LOGNAME HOSTNAME,SHELL
设置环境变量方法:
echo,export,env,set,unset
用户管理 P32
useradd,passwd,usermod,userdel,groupadd,groupmod,groupdel,id,groups who
useradd -g -m -n
系统管理命令P33
ps -ef -aux -w
top
kill -s -p -l
uname
setup系统图形化界面配置
crontab循环执行例行性命令
shutdown
uptime
clear
free★★★★★★★
df
du
fdisk -l
mount -a -l -t -f P36
mount -t vfat /dev/hda1 /mnt/c
umount /mnt/c
★★★★★★★★★★
dir D:\dojo\dojo132\dojo-release-132\*.js /s /a /b 1>filelist.txt
tree /R
★★★★★★★★★★
网络配置
auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.1.118netmask 255.255.255.0network 192.168.0.0broadcast 192.168.1.255gateway 192.168.1.1