linux学习日记
第一天上班,争取一个月内linux给弄熟悉了
跳转命令:cd /tmp跳转到tmp目录 cd ../../ 跳转到跟目录
新建文件: touch test.html 新建一个test.html 文件
装的是redhat系统 默认的apache服务没有打开,需要打命令
/etc/init.d/{服务名} start或者/etc/rc.d/init.d/{服务名} start /etc/rc.d/init.d 这个目录为服务的目录。里面都是服务的名字,启动相关服务即可!!
目前这么多。!中午了。玩会别的
相关文档:
查看系统的磁盘信息:
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 ......
Linux下关机最要有以下方法,我想这些方法足以满足你的需要:
[root@localhost /]# shutdown [-t秒] [-arkhcncfF] [时间] [提示信息]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t 后加秒数,即‘过几秒钟后关机’的意思。
-k : 不要真的关机,只是发送提示信息。
......
ICW2 用于设置芯片送出的中断号的高5位。什么意思呢,就是说从中断控制器发出的中断信号的高5位就是在ICW2里设置的。
在linux 0.11里系统把主片的ICW2设置为0x20,就表示中断请求IR0~IR7中断号的范围是0x20~0x27(8259A芯片产生的IRQ号必须是连续的,所以也只需要设置起始号就ok了!) ......
文档创建日期:2010-02-19
01 // P173: 2.编程题 (7)
02
03 // The beginning of C program: test06-07.c.
04
05 // ......
1.check ntp is installed or not
[root@myvm1 server-tar]# whereis npt
npt:
#:(..not install
2.get ntp from official website(http://psp2.ntp.org/bin/view/Main/SoftwareDownloads) and install.
[root@myvm1 server-tar]# wget http://archive.ntp.org/ntp4/ntp-4.2/ntp-4.2.6.tar.gz
[root@myvm1 server-tar ......