21.      Ubuntu中的目录结构:

22.      ubuntu 关机,重启,注销命令[root账户下才可以使用] 18

23.      Linux使用VI编辑器:... 18

24.      查看输入过的历史命令: history. 19

25.      查看DNS命令:cat /etc/resolv.conf 19

26.      路由表才能查看网关:route. 19

27.      UbuntuCtrl+CCtrl+Z的区别... 19

28.      停止网络:sudo ifconfig eth0 down. 20

29.      自动获取的(DHCPIP地址恢复网络:sudo dhclient eth0. 20

30.      查看本机开启的端口:Netstat 21

21.         Ubuntu中的目录结构:

1.       root目录:启动文件

Ubuntu系统详细分析【21-30】_Ubuntu系统

2.       dev目录:设备文件

Ubuntu系统详细分析【21-30】_Ubuntu系统_02

Ubuntu系统详细分析【21-30】_Ubuntu系统_03

3.       Proc目录:内核与进程镜像

Ubuntu系统详细分析【21-30】_Ubuntu系统_04
Ubuntu系统详细分析【21-30】_Ubuntu系统_05

4.       mnt目录:临时挂载

Ubuntu系统详细分析【21-30】_Ubuntu系统_06

5.       media目录:挂载媒体设备

Ubuntu系统详细分析【21-30】_Ubuntu系统_07

Ubuntu系统详细分析【21-30】_Ubuntu系统_08

6.       Root用户下的Home目录:

Ubuntu系统详细分析【21-30】_Ubuntu系统_09

7.       User用户下的Home目录:

Ubuntu系统详细分析【21-30】_Ubuntu系统_10

8.       bin目录:系统程序

Ubuntu系统详细分析【21-30】_Ubuntu系统_11
Ubuntu系统详细分析【21-30】_Ubuntu系统_12

9.       Sbin目录:管理员系统程序

Ubuntu系统详细分析【21-30】_Ubuntu系统_13Ubuntu系统详细分析【21-30】_Ubuntu系统_14

10.   Lib目录:系统程序库文件

Ubuntu系统详细分析【21-30】_Ubuntu系统_15
Ubuntu系统详细分析【21-30】_Ubuntu系统_16

11.   etc目录:系统程序和大部分应用程序的全局配置文件

Ubuntu系统详细分析【21-30】_Ubuntu系统_17
Ubuntu系统详细分析【21-30】_Ubuntu系统_18

12.   查看路由表:Netstat –r

Ubuntu系统详细分析【21-30】_Ubuntu系统_19

13.   sfasf

14.   sds

22.         ubuntu 关机,重启,注销命令[root账户下才可以使用]

shutdown -h now   立即进行关机

shutdown -r now   现在重新启动计算机

reboot           现在重新启动计算机

logout          注销

23.         Linux使用VI编辑器:

linux使用vi编辑器编辑hello.java

#vi hello.java   进入VI编辑器:

i                进入到插入模式

esc              进入到命令模式

wq             保存并退出

q            退出不保存

 

ls -l             当前目录的所以文件

编译hello.java

javac hello.java

ls -l

运行程序:javac hello

24.         查看输入过的历史命令: history

Ubuntu系统详细分析【21-30】_Ubuntu系统_20

25.         查看DNS命令:cat /etc/resolv.conf

Ubuntu系统详细分析【21-30】_Ubuntu系统_21

26.         路由表才能查看网关:route

Ubuntu系统详细分析【21-30】_Ubuntu系统_22

27.         UbuntuCtrl+CCtrl+Z的区别

Ctrl+C:送SIGINT信号,默认进程会结束,但是进程自己可以重定义收到这个信号的行为。

Ctrl+Z:送SIGSTOP信号,进程只是被停止,再送SIGCONT信号,进程继续运行。

28.         停止网络:sudo ifconfig eth0 down

Ubuntu系统详细分析【21-30】_Ubuntu系统_23
Ubuntu系统详细分析【21-30】_Ubuntu系统_24
Ubuntu系统详细分析【21-30】_Ubuntu系统_25

 

29.         自动获取的(DHCPIP地址恢复网络:sudo dhclient eth0

Ubuntu系统详细分析【21-30】_Ubuntu系统_26
Ubuntu系统详细分析【21-30】_Ubuntu系统_27
Ubuntu系统详细分析【21-30】_Ubuntu系统_28

10.     查看本机开启的端口:Netstat

Ubuntu系统详细分析【21-30】_Ubuntu系统_29