Top Puppy Linux Tips
Posted: Tue 22 Aug 2006, 12:15
Here are some of my top Puppy tips
what are yours?
What is the linux kernel?
The Linux kernel is the core of the Linux operating system.
To find out which version of the Linux kernel you are running,
type uname -r in console (see desktop).
Linux kernel info http://www.kernel.org∞
How do I change screen managers
ctrl + alt + backspace will take you to the prompt
then (assuming they are installed)
xwin JWM (this is the default - others must be installed)
xwin fv95wm
xwin xfce
xwin icewm
(xwin = xstart on other Linux systems)
How do I reboot my Puppy from the console?
reboot
shutdown -r now
You can also press (all at once) the control, alt and delete keys.
How do I shut down my Puppy from the console (are you feeling like A Linux Guru yet)?
ctrl + alt + backspace
poweroff
How do I remove/uninstall Lilo/Grub?
If you want to remove the Lilo or Grub boot loader from your system (if you are uninstalling linux etc) follow the procedures below:
For Windows 95/98 etc:
Use a dos boot disk and at the command prompt type:
fdisk /mbr
For Windows XP:
Boot off the XP Installation CD and go into rescue mode. From there run the command:
fixmbr
How do I change directories?
cd - Used to change directories
Usage: cd [directory]
Example: cd /root/my-documents/
Example: cd ../ (to move back one directory)
Example: cd (to return to your home directory)
How do I copy files?
cp - Used to copy files/directories from one location to another
Usage: cp file newlocation
Example: cp /home/joey/index.html /var/www/index.html
Example: cp /home/joey/* /var/www/ (this will copy everything in /home/joey to /var/www/)
For more information, in a terminal, type cp --help
How do I rename files?
mv - Used to move or rename files
Usage: mv file location (to move)
Usage: mv filename newfilename (to rename)
Example: mv index.html /var/www/index.html (to move)
Example: mv index.html index2.html (rename)
For more information, in a terminal, type mv --help
How do I list directory contents?
ls - To list the contents of a directory
Usage: ls [flags] directory
Example: ls (To list the current directory)
Example: ls /home/joey (To list the contents of /home/joey)
Example: ls -a (To list hidden files)
Example: ls -l (To list file/directory permissions and file sizes)
Example: ls -al /home/joey (To list all files and permissions in /home/joey)
How do I delete files?
Drag them from Rox to the trash
- they stay there until you empty the trash
How do I delete directories?
If you have ownership to the directory and the directory is empty, you can simply type rmdir directoryname to remove the directory. If the directory is not empty and you wish to simply delete it and all its contents, run rm -rf directoryname
Please be careful with the -rf flag, as it will remove everything in the specified directory including sub directories. With root access and the rm -rf command you can wipe out your entire system if you make an error.
How do I access my cdrom drive?
Click on "Drives"
or from the console
mount /dev/home/cdrom
How do I access my floppy drive?
mount /dev/home/fd0
How do I unzip a .tar.gz/.tgz file?
click on it
To extract .tar.gz or .tgz files, run the following command in a terminal:
tar -zxvf file.tar.gz (or file.tgz)
This will normally create a new directory based on the filename. If you want to extract a filename called file.tar (without the .gz) simply run:
tar -xvf file.tar
How do I unzip a .bz2 file?
click on it
To extract .bz2 files, run the following command in a terminal:
bunzip2 -dv file.bz2
How do I zip files?
Drag them from Rox to Pupzip icon on the desktop
How do I run a program?
Try: dillo, gimp, ical
from the console (command line terminal or CLI)
How do I check HD errors
fsck.ext2 -vfn /mnt/home/pup001
what are yours?
What is the linux kernel?
The Linux kernel is the core of the Linux operating system.
To find out which version of the Linux kernel you are running,
type uname -r in console (see desktop).
Linux kernel info http://www.kernel.org∞
How do I change screen managers
ctrl + alt + backspace will take you to the prompt
then (assuming they are installed)
xwin JWM (this is the default - others must be installed)
xwin fv95wm
xwin xfce
xwin icewm
(xwin = xstart on other Linux systems)
How do I reboot my Puppy from the console?
reboot
shutdown -r now
You can also press (all at once) the control, alt and delete keys.
How do I shut down my Puppy from the console (are you feeling like A Linux Guru yet)?
ctrl + alt + backspace
poweroff
How do I remove/uninstall Lilo/Grub?
If you want to remove the Lilo or Grub boot loader from your system (if you are uninstalling linux etc) follow the procedures below:
For Windows 95/98 etc:
Use a dos boot disk and at the command prompt type:
fdisk /mbr
For Windows XP:
Boot off the XP Installation CD and go into rescue mode. From there run the command:
fixmbr
How do I change directories?
cd - Used to change directories
Usage: cd [directory]
Example: cd /root/my-documents/
Example: cd ../ (to move back one directory)
Example: cd (to return to your home directory)
How do I copy files?
cp - Used to copy files/directories from one location to another
Usage: cp file newlocation
Example: cp /home/joey/index.html /var/www/index.html
Example: cp /home/joey/* /var/www/ (this will copy everything in /home/joey to /var/www/)
For more information, in a terminal, type cp --help
How do I rename files?
mv - Used to move or rename files
Usage: mv file location (to move)
Usage: mv filename newfilename (to rename)
Example: mv index.html /var/www/index.html (to move)
Example: mv index.html index2.html (rename)
For more information, in a terminal, type mv --help
How do I list directory contents?
ls - To list the contents of a directory
Usage: ls [flags] directory
Example: ls (To list the current directory)
Example: ls /home/joey (To list the contents of /home/joey)
Example: ls -a (To list hidden files)
Example: ls -l (To list file/directory permissions and file sizes)
Example: ls -al /home/joey (To list all files and permissions in /home/joey)
How do I delete files?
Drag them from Rox to the trash
- they stay there until you empty the trash
How do I delete directories?
If you have ownership to the directory and the directory is empty, you can simply type rmdir directoryname to remove the directory. If the directory is not empty and you wish to simply delete it and all its contents, run rm -rf directoryname
Please be careful with the -rf flag, as it will remove everything in the specified directory including sub directories. With root access and the rm -rf command you can wipe out your entire system if you make an error.
How do I access my cdrom drive?
Click on "Drives"
or from the console
mount /dev/home/cdrom
How do I access my floppy drive?
mount /dev/home/fd0
How do I unzip a .tar.gz/.tgz file?
click on it
To extract .tar.gz or .tgz files, run the following command in a terminal:
tar -zxvf file.tar.gz (or file.tgz)
This will normally create a new directory based on the filename. If you want to extract a filename called file.tar (without the .gz) simply run:
tar -xvf file.tar
How do I unzip a .bz2 file?
click on it
To extract .bz2 files, run the following command in a terminal:
bunzip2 -dv file.bz2
How do I zip files?
Drag them from Rox to Pupzip icon on the desktop
How do I run a program?
Try: dillo, gimp, ical
from the console (command line terminal or CLI)
How do I check HD errors
fsck.ext2 -vfn /mnt/home/pup001