tinycore我最喜歡的一點是,它不保存過多的東西。當然好多人會把這個特性看成缺點。凡是給kernel傳入tce的路徑,執行
sudo backup
便能把用戶目錄所做的更改保存下來。
還記得我們發現的鏡像地址的文件嗎?
在/opt目錄下還有幾個文件,它們都很有用
- .filetool.list
這個隱藏文件記錄了默認要保存哪些文件夾
cat .filetool.list
home
opt
你若想保存其它的文件夾,加在后面便可,如:
echo etc > .filetool.list
- bootlocal.sh
這個文件用于在系統系統時執行命令:
cat bootlocal.sh
#!/bin/sh
# put other system startup commands here
- bootsync.sh
這個文件使得我們寫在bootlocal.sh中的命令是在后臺執行的:
cat bootsync.sh
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
/opt/bootlocal.sh &
- tcemirror
這個是上文說過的,鏡像的地址
cat tcemirror
http://repo.tinycorelinux.net/