文件操作 - FAQ
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/dphys-swapfile/FAQ
编辑文件内容
http://neil.franklin.ch/Projects/dphys-swapfile/FAQ author Neil Franklin, last modification 2006.12.22 copyright ETH Zuerich Physics Departement use under either modified/non-advertising BSD or GPL license Frequently* Asked Questions (FAQ) for the dphys-swapfile project * not really frequent, but that is what such files are called Q: Why are you building an swap file script? A: Because we want to get rid of the inflexibility of swap partitions Q: Why not simply make an swap file by hand? A: Because we want to dynamically resize fitting to RAM size, and also want automatic installation of our systems Q: Why not simply mount from /etc/fstab? A: Because we can not (re-)size/generate File until /var is mounted and need to do so before swapon, and at least under Debian (and most likely under many others) we can not insert our setup code in between them (both are in then same init.d script) Q: Will this work on my $DISTRIBUTION? A: The actual script should work with any Linux distribution. It auto-installs everything it needs. And can uninstall all of this, when called with "uninstall" as parameter. It has actually been tested under Debian Linux 3.0 (woody) and 3.1 (sarge) and under Slackware 9.1 and 10.0, so it seems to be totally portable Q: Why is this called dphys-swapfile ? A: Departement of PHYSics - SWAP FILE script Q: Where can I get code? A: The current (read: in edit, sometimes not functional) from: http://neil.franklin.ch/Projects/dphys-swapfile/ or: http://neil.franklin.ch/Projects/dphys-swapfile.tar.gz or Various milestones/releases (read: archives, working) from: http://neil.franklin.ch/Projects/dphys-swapfile-<date>/ or: http://neil.franklin.ch/Projects/dphys-swapfile-<date>.tar.gz where last milestone/release is <date>=20061020
修改文件时间
将文件时间修改为当前时间的前一年
删除文件