1. Turn the system off.
2. Hit ESC when the OS boots up
3. Choose to boot into Single User Mode (option 4)
4. Select the default shell (/bin/sh)
5. When the machine is booted up and you see the prompt, enter:
* mount -u /
* mount -a
6. Type passwd to reset the password
7. Enter the new password and confirm it
8. Type reboot to reboot the machine (or press the shutdown button to reboot)
Tag Archive: admin
# Find disk usage by partition in a human readable format
$ df -h
# Find the top 100 space eating monster file/dir under a directory
$ du -a [dir] | sort -n | tail -100
# Find out what files a logged in user has opened (ignoring libs, devices, sockets, pipes)
$ lsof | grep [username] | egrep -v ‘(lib|/dev|pipe)’
# Find which process is connected to what port and which remote host
$ netstat -pat
# Find the NIC speed
$ mii-tool
# Move all files with specific pattern to a sub-directory which might already have files with same pattern
$ find . -maxdepth 1 -name “*2008*.txt” -exec mv {} 2008 \;
