生活心情記事、教學文章分享
所有的改變,都是從局部開始,一點點積累,一點點變化,積少成多
Smart Mindset Idea Learn Effect
網頁
2019年12月22日 星期日
2019年12月21日 星期六
Linux中fdisk、mkfs、mkswap、swapon(off)、(u)mount命令使用
1. VMware Workstation中新增硬碟
2. 系統完成開機與登入後,確認新增硬碟是否有出現
3. 針對指定設備裝置進行分區規劃
4. 使用fdisk命令新增主要(Primary)分區
5. 於系統中確認分區是否成功產生,若無可輸入1~2次partprobe命令試試,仍無法產生時,可輸入reboot命令重啟系統應可解決問題
6. 將分區進行格式化,以利掛載目錄(資料夾)使用
7. 新增目錄(資料夾)與進行掛載,並將記錄寫入至/etc/fstab中,以利系統開機或重開機自行掛載
2019年12月17日 星期二
如何從Active Directory查詢五大角色FSMO-How to Query FSMO Roles in Active Directory
Windows Active Directory五大角色(FSMO)包含樹系2個角色及域3個角色共同組成。

方法2: Powershell

方法3:DSA.MSC










樹系角色:
- Schema Master
- Domain naming master
域角色:
- PDC Emulator
- RID Master
- Infrastructure Master
方法2: Powershell
方法3:DSA.MSC
2019年12月8日 星期日
6個好用的Linux查看時間的命令
1. COMMAND:who,show who is logged on.
SYNOPSIS:who -a(all) | -b(boot) | -u(users) (Figure 1)
Figure 1

who命令用來查看系統當前登錄的用戶。
2. COMMAND:last、lastb,show listing of last logged in users.
SYNOPSIS:last、lastb -num | -n num | -f file (Figure 2)
Figure 2

last命令用來列出最近登錄過系統的用戶。
3. COMMAND:date,print or set the system date and time.
SYNOPSIS:date -u | -utc (Figure 3)
Figure 3

date命令用來查看系統時間的命令,也是經常用於腳本定義時間的命命。
4. COMMAND:uptime,Tell how long the system has been running.
SYNOPSIS:uptime -p | -s (Figure 4)
Figure 4

uptime命令第一個表示是系統當前時間(13:09:35),第二個表示是系統運行時間(up 8:08),第三個表示是系統當前的登錄用戶數(2 users),load average表示過去1分鐘、5分鐘、15分鐘的系統負載均值。
5. COMMAND:top,display Linux processes.
SYNOPSIS:top (Figure 5)
Figure 5

top命令是用來即時監控系統各項進程運行及使用資源的情況。
6. COMMAND:w,Show who is logged on and what they are doing.
SYNOPSIS:w -h | -s (Figure 6)
Figure 6

w命令是用來查看系統目前登錄的用戶,及每個用戶當前使用的進程與所有活動對系統的影響。
SYNOPSIS:who -a(all) | -b(boot) | -u(users) (Figure 1)
Figure 1
who命令用來查看系統當前登錄的用戶。
2. COMMAND:last、lastb,show listing of last logged in users.
SYNOPSIS:last、lastb -num | -n num | -f file (Figure 2)
Figure 2
last命令用來列出最近登錄過系統的用戶。
3. COMMAND:date,print or set the system date and time.
SYNOPSIS:date -u | -utc (Figure 3)
Figure 3
date命令用來查看系統時間的命令,也是經常用於腳本定義時間的命命。
4. COMMAND:uptime,Tell how long the system has been running.
SYNOPSIS:uptime -p | -s (Figure 4)
Figure 4
uptime命令第一個表示是系統當前時間(13:09:35),第二個表示是系統運行時間(up 8:08),第三個表示是系統當前的登錄用戶數(2 users),load average表示過去1分鐘、5分鐘、15分鐘的系統負載均值。
5. COMMAND:top,display Linux processes.
SYNOPSIS:top (Figure 5)
Figure 5
top命令是用來即時監控系統各項進程運行及使用資源的情況。
6. COMMAND:w,Show who is logged on and what they are doing.
SYNOPSIS:w -h | -s (Figure 6)
Figure 6
w命令是用來查看系統目前登錄的用戶,及每個用戶當前使用的進程與所有活動對系統的影響。
訂閱:
文章 (Atom)