| FAQ/shell |
UserPreferences |
| cornerhost wiki | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents | moin.sf.net |
The "du" command does what you want. For example:
% cd ~ % du -hL --max-depth=2
The diskspace meter in the control panel also includes the inbox for your mail, so the numbers might not match up.
cd ~ mkdir cvs cvs -d ~/cvs init
Then from home:
cvs -d:ext:USERNAME@XYZ.sabren.com:~/cvs {whatever cvs command}
Sure.
This command will show the old logfiles:
find ~/log/ -ctime +6
Either of these should delete them:
find ~/log/ -ctime +6 -exec rm {} \;
find ~/log/ -ctime +6 | xargs rm
It's up to you. On win32, I recommend putty from http://www.putty.nl/
For those who want more features then putty should try SecureCRT (http://www.vandyke.com/products/securecrt/index.html)
cd ~/web ; tar -czf sitename.tgz sitename
In that example you should replace 'sitename' with your domain name. If you have several subdomains, you could use:
cd ~/web ; tar -czf mysites.tgz ./*
If you would like to back up your database use:
mysqldump -h db.sabren.com -u username -ppassword -d database | gzip > database.sql.gz
db.sabren.com, username, password should be replaced with your database server, username, and password as specified in your welcome letter. -p is needed before your password, so if your password is 123 it would be -p123. replace database with the name of your database (for example, if your username is "suzieq", then your database name will likely be "suzieq_db").
# first create the key on your *home* machine: % ssh-keygen -b 1024 -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/you/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/you/.ssh/id_rsa. Your public key has been saved in /home/you/.ssh/id_rsa.pub. The key fingerprint is: f1:bb:b4:90:9b:49:ff:99:7a:a5:2e:b8:a4:e9:f3:2d you@home # then upload the file to cornerhost: % scp /home/you/.ssh/id_rsa.pub you@machine.sabren.com: # then on the machine: % ssh you@machine.sabren.com cat id_rsa.pub >> ~/.ssh/authorized_keys2 # make sure the authorized_keys2 file is readable only by you: % ssh you@machine.sabren.com chmod 600 ~/.ssh/authorized_keys2 # you should now have passwordless entry. Try it: % ssh you@machine.sabren.com rm id_rsa.pub
See also: http://www.catb.org/~esr/ssh-installkeys/ssh-installkeys.html