04-17-2007, 04:41 AM
Command+S = Single user mode
ls = list folder contents
rm = remove file aka. "delete"
rmdir = remove directory
su = Switch User (it defaults to root user if you don't specify a username, so most people say it means "Super User") This allows you to log in as User "A" and execute commands as User "B" with User "B"'s credentials. This remains active until you log out as User B and return to User A
sudo = execute a single command as another user, again this defaults to the root account unless you specify otherwise
eg: sudo echo "hello world"
password
hello world
chmod = change permission settings
eg: sudo chmod 777
(I could try to explain *nix permissions, but it is easier to look it up. You can do it using letters, but octal notation is quicker once you get used to it)
http://en.wikipedia.org/wiki/Unix_permission
OK, I'll try. 4=read, 2=write, 1=execute, so 4+2+1=7 (you can do whatever you want to the file)
chown = change file/folder ownership settings
eg: sudo chown user:group
the "man" files provide a good source of info too:
eg: man chmod
*****************************
OK, now that you're thoroughly confused let's get down to brass tacks.
localhost:/ root# cd /directory/that/holds_the_75GB/file
localhost:/ root# rm
localhost:/ root# ls
(notice that the 75GB file *should* be gone)
localhost:/ root# shutdown -r now
********************
**edit** I was trying to get the commands correct from memory, then realized I'd screwed up pretty badly and mixed up some Linux with the Mac OS single user mode. Sorry about that. I think that I've fixed it up now.
*********************
ls = list folder contents
rm = remove file aka. "delete"
rmdir = remove directory
su = Switch User (it defaults to root user if you don't specify a username, so most people say it means "Super User") This allows you to log in as User "A" and execute commands as User "B" with User "B"'s credentials. This remains active until you log out as User B and return to User A
sudo = execute a single command as another user, again this defaults to the root account unless you specify otherwise
eg: sudo echo "hello world"
password
hello world
chmod = change permission settings
eg: sudo chmod 777
(I could try to explain *nix permissions, but it is easier to look it up. You can do it using letters, but octal notation is quicker once you get used to it)
http://en.wikipedia.org/wiki/Unix_permission
OK, I'll try. 4=read, 2=write, 1=execute, so 4+2+1=7 (you can do whatever you want to the file)
chown = change file/folder ownership settings
eg: sudo chown user:group
the "man" files provide a good source of info too:
eg: man chmod
*****************************
OK, now that you're thoroughly confused let's get down to brass tacks.
localhost:/ root# cd /directory/that/holds_the_75GB/file
localhost:/ root# rm
localhost:/ root# ls
(notice that the 75GB file *should* be gone)
localhost:/ root# shutdown -r now
********************
**edit** I was trying to get the commands correct from memory, then realized I'd screwed up pretty badly and mixed up some Linux with the Mac OS single user mode. Sorry about that. I think that I've fixed it up now.
*********************