1、說明chkconfig [--add][--del][--list][系統服務]chkconfig [--level <等級代號>][系統服務][on/off/reset] chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of
2、wc [-lwm]選項與參數:-l :僅列出行;-w :僅列出多少字(英文單字);-m :多少字元;3、md5summd5sum [OPTION]... [FILE]...Print or check MD5 (128-bit) checksums.With no FILE, or when FILE is -, read standard input. -b, --binary read in binary mode -c, --check
在看 學習shell中練習的代碼#!/bin/bash# User can keyin filename to touch 3 new files.PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesexport PATHecho "I will use 'touch' command to create 3 files."read -p "Please input the filename
Unix-like systems such as linux always have a single file system tree, regardless of how many drives or storage devices are attached to the computer.Storage devices are attached( mounted ) at various points on the tree according to the system
預設情況下,Ubuntu終端會輸出完整路徑,在路徑名很長的時候,提示方式很不友好,通過以下步驟修改PS1變數的設定,可以讓終端輸出相對路徑。類似於紅帽系統的風格。修改思路:將w修改為W顯示絕對路徑,並添加[]括弧。首先修改/etc/bash.bashrc檔案leo@leo-laptop:~$ sudo vim /etc/bash.bashrc修改如下內容:#PS1=’${debian_chroot:+($debian_chroot)}u@h:w$ ‘PS1=’[${debian_chroot:+