不知不覺已經學了4天了,對於即將30歲的本身才剛剛是一個開始。剛剛進班的時候覺得本身是歲數最大的了,經過班主任安排的自我介紹才知道班裏居然還有80年的,忽然間感受到這是多麼的勵志啊,80年的今年都40了,本身憑什麼不加油努力!mysql
在將來的5個月時間裏,我對本身的要求是第一 必定要堅持下來。 第二 要堅持寫博客,由於本身有過看學習視頻的經歷,本身若是隻是一遍遍不停看的話,只是當時能夠記住,事後就會忘記,並且讓本身表達的時候內心面知道怎麼回事,可是表達不出來。第三 就是要把上課的練習 無論多長時間 必定要完成一次。sql
好了,廢話很少說,進入正題!跟你們分享一下最近幾天的學習記錄shell
第一 顯示虛擬機的安裝 這個不用多說,就是傻瓜式安裝就能夠了,附圖ubuntu
緊接着有安裝了 centos6 centos7 ubuntu,在這裏我就先只列出部分vim
課堂上老師還講了一些 Linux 發展史和一些基礎的命令,我在這裏列出個別幾個 就不一一列出了!centos
type 判斷一個命令是內部仍是外部命令bash
type COMMANDcookie
[root@centos6 ~]#type cat cat is /bin/cat [root@centos6 ~]#type echo echo is a shell builtin
ifconfig 能夠查看當前主機的地址ssh
[root@centos6 ~]#ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:5B:29:58 inet addr:192.168.181.128 Bcast:192.168.181.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe5b:2958/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1898 errors:0 dropped:0 overruns:0 frame:0 TX packets:107 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:124398 (121.4 KiB) TX bytes:13765 (13.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ls 能夠列出當前文件夾下的文件ide
ls -a 能夠查看隱藏的文件 以 . 開頭的爲隱藏文件
[root@centos6 ~]#ls anaconda-ks.cfg Desktop Documents Downloads install.log install.log.syslog Music Pictures Public Templates Videos [root@centos6 ~]#ls -a . .bash_history .cache Desktop .gconf .gtk-bookmarks install.log .mysql_history .pulse .tcshrc .. .bash_logout .config Documents .gnome2 .gvfs install.log.syslog .nautilus .pulse-cookie Templates .abrt .bash_profile .cshrc Downloads .gnote .ICEauthority .local Pictures .rnd Videos anaconda-ks.cfg .bashrc .dbus .esd_auth .gnupg .imsettings.log Music Public .ssh .viminfo
cat 能夠查看文件
cat [OPTION]... [FILE]...
[root@centos6 ~]#cat /etc/fstab # # /etc/fstab # Created by anaconda on Fri May 10 12:57:37 2019 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=4caa3593-43c3-4e50-9af5-ccc9debd8a90 / ext4 defaults 1 1 UUID=d3d45ae1-c62b-4b76-ba3a-9366dfe1c6bf /boot ext4 defaults 1 2 UUID=6e9b104e-78ad-4e28-a49e-1f272395922d /data ext4 defaults 1 2 UUID=17fb7d65-55b5-435b-8504-1ef1bdabb2f6 swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0
還有最最重要的兩個命令
whatis 和whereis
這兩個你們不要搞混了,whatis通常配合man幫助用先用whatis看下文件是幹什麼用的,而後在用man命令查看具體用法
例如
[root@centos6 ~]#whatis echo echo (1) - display a line of text echo (1p) - write arguments to standard output echo [builtins] (1) - bash built-in commands, see bash(1)
[root@centos6 ~]#man echo
而whereis則是查看命令的路徑
例如
[root@centos6 ~]#whereis echo echo: /bin/echo /usr/share/man/man1p/echo.1p.gz /usr/share/man/man1/echo.1.gz
好了,就寫到這裏吧,最後但願本身能學有所成,五個月後能夠找到一份滿意的工做!