修改网卡参数:
A、修改ip地址
即时生效:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
启动生效:
修改/etc/sysconfig/network-scripts/ifcfg-eth0
B、修改default gateway
即时生效:
# route add default gw 192.168.0.254
启动生效:
修改/etc/sysconfig/network-scripts/ifcfg-eth0
C、修改dns
修改/etc/resolv.conf
修改后可即时生效,启动同样有效
D、修改host name
即时生效:
# hostname fc2
启动生效:
修改/etc/sysconfig/network
==================================================================
启动后直接进入命令行视图:
编辑/etc/inittab,
将id:5:default: 这一行改为 id:3:default:
保存后重启就可以了。
如果想要进入xwindows,在命令行入: #startx
==================================================================
查看Linux中目录空间的大小:
du -bh ./ | sort -nr | less
==================================================================
Shell保留字符及其含义
$ shell变量名的开始,如$var
| 管道,将标准输出转到下一个命令的标准输入
# 注释开始
& 在后台执行一个进程
? 匹配一个字符
* 匹配0到多个字符(与DOS不同,可在文件名中间使用,并且含.)
$- 使用set及执行时传递给shell的标志位
$! 最后一个子进程的进程号
$# 传递给shell script的参数个数
$* 传递给shell script的参数
$@ 所有参数,个别的用双引号括起来
$? 上一个命令的返回代码
$0 当前shell的名字
$n (n:1-) 位置参数
$$ 进程标识号(Process Identifier Number, PID)
分享到:
相关推荐
Linux Tips Linux 使用小技巧合集 DOC
Linux Tips - Bufferbloat
DescomplicandoPacker LinuxTips Uncomplicating Packer中的文件要求吉特码头工人怎么跑user@pc$ git clone https://github.com/diegoaceneves/DescomplicandoPacker.gituser@pc$ cd DescomplicandoPackeruser@pc$ ...
a book about linux tips
Linux Debugging and Performance Tuning Tips and Techniques
Linux Tips and Tricks to enhance the efficiency of the usage of Linux Operating System
Linux Debugging and Performance Tuning Tips and Techniques.rar
Linux调试技术和性能调优手段,chm格式
Fedora Ubuntu LinuxMint 等Linux系统的各种使用技巧各提示,图文并茂,解说详细。
1.删除utmp记录,将从w或者who输出中隐藏 1. 添加utmp记录,伪造登录信息 2.删除历史登录记录(wtmp) 3.添加wtmp记录 4.删除btmp
CentOS 优化 Linux 内核参数在末尾追加以下内容使配置立即生效。
linux经典入门书 The Linux Starter Pack -- (C) Future Publishing ...news, tutorials, tips and features you need to get more from your OS -- it's the essential read for all Linux users!
Linux Debugging and Performance Tuning (Prentice, 2005)
linux-101-hacks,学习 linux 的一些 tips,一些小技巧
Linux调试方法和性能调优,chm格式
Linux_Debugging_and_Performance_Tuning_Tips_and_Techniques.rar
Linux_Server_Hacks_Volume_Two_Tips_Tools_for_Connecting_Monitoring_and_Troubleshooting
Throw in a host of valuable power user tips and a friendly and accessible style, and you'll quickly find this practical, to-the-point book a small but mighty resource for Linux users.
Tips on debugging the Linux kernel In-depth coverage of kernel synchronization and locking Useful insight into submitting kernel patches and working with the Linux kernel community
Linux Security Tips(Linux 安全技巧).pdf linux 系统安全与优化中文版 by smallfish.pdf Linux 系统安全与优化中文版221.pdf Linux 进程管理.pdf Linux安全和优化.pdf linux服务器优化调优笔记.pdf Linux的...