nice -[nice_number] process/application
[nice_number] : -20~19,數字越大,priority越低
Example:
# nice -5 baobab &
2.調整執行中程式的 priority
renice [nice_number] [-p PID] [-g group_name] [-u username]
Example:
# renice -20 -p 17756
# renice 7 -u calvin
3.增加使用者和設定密碼
useradd [-u uid] [-g group_name]
passwd
Example:
# useradd chiling
# useradd -u 501 -g users selina
# passwd chiling
4.增加 samba 使用者兼設定密碼
sambapasswd -a
Example:
# sambapasswd -a chiling
使用者帳號必須存在 LINUX 使用者當中
5.顯示檔案內容於stdout
strings
Example:
# strings env.cfg
一般遇到要輸出檔案內容,最常用的命令就是 cat 了,不過 strings 有一個比 cat 好用的地方就是,它可以將 binary 的檔案輸出成字串的格式以方便閱讀。
6.查看 DMI table 資訊,就是硬體相關的參數。包含 BIOS 版本、主機板資訊、CPU......等
dmidecode
7.強制連線登出
skill -KILL -u
Example:
# skill -KILL -u chiling
8.查看目錄使用者
lsof | grep
Example:
# lsof | grep /home/chiling
沒有留言:
張貼留言