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/