Linux顯示單一目錄的資訊
作業系統:Oracle Enterprise Linux
目的:顯示單一目錄的資訊。
當我們在 ls 後方加入目錄名稱時,它會將該目錄內的檔案列表出來。
[root@localhost /]# ls -l home
total 36
drwx------ 3 davfs2 501 4096 Apr 15 2010 davfs2
drwx------ 2 root root 16384 Apr 5 2010 lost+found
drwxr-xr-x 43 oracle oracle 4096 Jun 1 01:20 oracle
drwx------ 3 spotlight spotlight 4096 Mar 29 20:22 spotlight
drwx------ 3 u078 u078 4096 Mar 12 01:11 u078
此時可以加入參數 -d,就可以了。
[root@localhost /]# ls -ld home
drwxr-xr-x 7 root root 4096 Mar 29 20:10 home
如果想查詢目錄的總容量,可以輸入以下的指令。
[root@localhost /]# du -sh home
5.5G home
-
Windows7 / Windows8 kill process Linux下要刪除某個程序通常會使用 ps 配合 kill 來刪除程序。 例如:ps -ef |grep [PROCESS NAME] kill -9 [PID] 在Windows下,通常是...
-
利用Win 10的工作排程器來設定每日自動執行的批次檔,單獨執行批次檔沒問題,但是放在排程上就是無法執行。 後來試了幾種網路上提供的方式,其注意的事項如下: 1、在「安全性選項」選擇「只有使用者登入時才執行」並取消「以最高權限執行」。 2、在「設定」中選擇「Win...
-
其實預設都會幫我們安裝pip這個管理套件,但是我在安裝完python 3.7後卻無法使用pip來安裝套件。 查詢是否已經有安裝pip: C:\> python -m pip --version pip 20.0.2 from C:\Python37\lib\si...