如何停止ubuntu在開機啟動時進入視窗模式,並限制為文字模式?

資料來源:https://askubuntu.com/questions/16371/how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode

編輯 /etc/default/grub

sudo nano /etc/default/grub

尋找這一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

更改為

GRUB_CMDLINE_LINUX_DEFAULT="text"

更新 GRUB 設定

sudo update-grub


For systems that use systemd

This is an additional step for systemd releases, e.g. Ubuntu 15.04, the steps above for grub are still necessary.

You need to tell systemd to not load the graphical login manager:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

You will still be able to use X by typing startx after you logged in.

Crontab 使用實例

資料來源:https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/crontab.html

實例1:每1分鐘執行一次myCommand

* * * * * myCommand

實例2:每小時的第3和第15分鐘執行

3,15 * * * * myCommand

實例3:在上午8點到11點的第3和第15分鐘執行

3,15 8-11 * * * myCommand

實例4:每隔兩天的上午8點到11點的第3和第15分鐘執行

3,15 8-11 */2 * * myCommand

實例5:每週一上午8點到11點的第3和第15分鐘執行

3,15 8-11 * * 1 myCommand

實例6:每晚的21:30重啟smb

30 21 * * * /etc/init.d/smb restart

實例7:每月1、10、22日的4 : 45重啟smb

45 4 1,10,22 * * /etc/init.d/smb restart

實例8:每週六、週日的1 : 10重啟smb

10 1 * * 6,0 /etc/init.d/smb restart

實例9:每天18 : 00至23 : 00之間每隔30分鐘重啟smb

0,30 18-23 * * * /etc/init.d/smb restart

實例10:每星期六的晚上11 : 00 pm重啟smb

0 23 * * 6 /etc/init.d/smb restart

實例11:每一小時重啟smb

*/1 * * * /etc/init.d/smb restart

實例12:晚上11點到早上7點之間,每隔一小時重啟smb

0 23-7 * * * /etc/init.d/smb restart

Renaming a virtual machine and its files in VMware ESXi

Source : https://kb.vmware.com/s/article/1029513?docid=2094957

Rename the virtual disk (VMDK) files using the vmkfstools -E command:

# vmkfstools -E "originalname.vmdk" "newname.vmdk"

Notes

  • In some cases, it may be required to clone (copy) a virtual disk. To clone a virtual disk to a new virtual disk, run this command:

    # vmkfstools -i "originalname.vmdk" "newname.vmdk"

    This leaves the original virtual disk untouched. You need enough space available to clone the virtual disk in the destination directory. In the preceding command, the new virtual disk is created in the current directory but a different directory can be specified.
     
  • You need not rename the originalname-flat.vmdk file after running the vmkfstools command. The vmkfstools command renames both VMDK files and updates the reference within the descriptor.
     
  • Do not use the cp or mv commands to rename virtual disk files. Instead, use VMware utilities such as vmkfstools.

How do I find all files containing specific text on Linux with GREP?

Source: https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

Do the following:

grep -rnw '/path/to/somewhere/' -e 'pattern'
  • -r or -R is recursive,
  • -n is line number, and
  • -w stands for match the whole word.
  • -l (lower-case L) can be added to just give the file name of matching files.
  • -i stands for ignore case (optional in your case).

Along with these, --exclude--include--exclude-dir flags could be used for efficient searching:

  • This will only search through those files which have .c or .h extensions:grep --include=\*.{c,h} -rnw '/path/to/somewhere/' -e "pattern"
  • This will exclude searching all the files ending with .o extension:grep --exclude=\*.o -rnw '/path/to/somewhere/' -e "pattern"
  • For directories it’s possible to exclude one or more directories using the --exclude-dir parameter. For example, this will exclude the dirs dir1/, dir2/ and all of them matching *.dst/:grep --exclude-dir={dir1,dir2,*.dst} -rnw '/path/to/somewhere/' -e "pattern"

This works very well for me, to achieve almost the same purpose like yours.

For more options check man grep.

天干地支 與人體器官 關係

甲膽乙肝丙小腸,丁心戊胃己脾鄉。

庚是大腸辛屬肺,壬系膀胱癸腎藏。

三焦亦向壬中寄,包絡同歸入癸方。

甲頭乙項丙肩求,丁心戊肋己屬腹。

庚是臍輪辛屬股,壬脛癸足一身由。

子屬膀胱水道耳,醜為胞肚及脾鄉。

寅膽發脈並兩手,卯本十指內肝方。

辰土為皮肩胸類,巳面齒咽下尻肛。

午火精神司眼目,未土胃脘隔脊樑。

申金大腸經絡肺,酉中精血小腸藏。

戌土命門腿還足,亥水為頭及腎囊。

午頭巳未兩肩均,左右二膊是辰申。

卯酉雙肋寅戌腿,醜亥屬腳子為陰。

幹首坤腹坎耳儔,震足巽股艮手留。

兌口離目分八卦,凡看疾病此中求。

侯天同實用八字課

第一課

1.天干陰陽(日主屬陰屬陽)

2.以日主陰陽,選高中低層

3.綜合地支藏干與天干選高中低的細分

基本概念:十天干 十二地支 地支藏干

第二課

4.辰戌丑未 老
子午卯酉 中
寅申巳亥 青

5.月令為性格的主軸

6.年+月 少青年時期:性格,處事方向(八字引導性格,性格引導行事)
月+日 中年時期
月+時 熟年時期
基本概念: 命盤格式 – 上天干 下地支
地支之下有藏干
日主(日柱天干)
四柱-年柱,月柱,日柱,時柱
月令(月柱地支)

2020年蓮鶴仙觀中元法會祖師降偈給蓮鶴弟子

冤魂法會萬千千
人禍天災復連連
巍峨象上諸仙降
亡靈地府得昇遷
報薦人隨德無邊
施法神聖化迍邅
方便共行濟倉生
赦宥力能道自然

亡魂怨氣已消但人心乖氣未散正所謂度鬼容易度人難本人希望大家來觀幫手小說話多做事待乖氣盡消自然世界祥和🙏🏻🙏🏻🙏🏻