計算機的組成原理
抽象
具體
Linux初識
負責與硬件交互,并向外提供系統調用
Linux大家庭
suse系列: opensuse suse enterprise redhat系列: centos redhat Debian系列: ubuntu debian
命令總結
顯示本機IP(需要root權限) [root@localhost dev]# ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.85.128 netmask 255.255.255.0 broadcast 192.168.85.255 inet6 fe80::1163:5b98:4799:129d prefixlen 64 scopeid 0x20<link> ether 00:0c:29:12:b0:33 txqueuelen 1000 (Ethernet) RX packets 431260 bytes 127548611 (121.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 13149 bytes 3110016 (2.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
顯示當前日期 [root@localhost dev]# date 2017年 07月 02日 星期日 10:27:53 CST 按照指定格式輸出日期 %Y 年 %m 月 %n 日 %H 小時(24) %M 分 %S 秒 %F full date %T time [root@localhost dev]# date -d "1 day ago" 2017年 07月 01日 星期六 10:33:14 CST [root@localhost dev]# [root@localhost dev]# date -d "tomorrow" 2017年 07月 03日 星期一 10:33:39 CST [root@localhost dev]# [root@localhost dev]# date "+%F %T" 2017-07-02 10:33:51 [root@localhost dev]# date "+%Y %m %d" 2017 07 02 [root@localhost dev]# [root@localhost dev]# date "+%H %M %S" 10 34 30
echo命令,終端上輸出信息 常用選項: -n 不空行 -e 特殊字符特殊處理 [root@localhost dev]# echo "hello world" hello world [root@localhost dev]# echo -n "hello world" hello world[root@localhost dev]# [root@localhost dev]# [root@localhost dev]# [root@localhost dev]# echo -e "hello \n world" hello world 顯示顏色 [root@localhost dev]# echo -e "\033[1;5;31m hello world \033[0m" hello world
type來查看是否是內部命令還是外部命令 [root@localhost dev]# type cd cd 是 shell 內嵌 [root@localhost dev]# type yum yum 已被哈希 (/usr/bin/yum)
幫助手冊路徑 /usr/share/man man 使用手冊是壓縮格式的文件,有章節之分; 1、使用命令 2、系統調用; 3、C函數庫的調用; 4、設備文件及特殊文件; 5、文件格式:(配置文件格式); 6、游戲使用幫助; 7、雜項; 8、管理工具及守護進程; man使用手冊內容布局: NAME:功能性說明 SYNOPSIS:語法格式 DESCRIPTION:描述 OPTIONS:選項 EXAMPLES:使用事例 AUTHOR:作者 BUGS:報告程序bug的方式 SEE ALSO:參考 并非每個命令在所有章節都有手冊; 查看命令:# whatis COMMAND 一般使用: man xxx
FHS標準
原創文章,作者:N27_jiangyefan,如若轉載,請注明出處:http://www.www58058.com/79055
一開始的作業很簡單,但是可以看出有很認真的對待,好的開始,加油!