skimppimppin along! NEWS   FORUM   DOWNLOAD   LINKS    
HOME ACCOUNT PRIVATE MESSAGE  
Login
Username:

Password:


Lost Password?

Register now!

Main Menu

Search

skimpydog.com Forum Index
   Gentoo Base
  Gentoo specific notes - some of this may also pertain to other variants

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
Gentoo specific notes - some of this may also pertain to other variants
#1
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
Controlling startup|on boot services:
Actual Directories:

/etc/runlevels/{default|boot|nonetwork|single}


rc-update
rc-update show

rc-update add samba {default|boot|nonetwork|single}


eselect - Gentoo's multi-purpose configuration and management tool
eselect

eselect opengl list

eselect opengl set {xorg-x11|nvidia|intel|ati|radeon}


fdisk - Partition table manipulator for Linux
fdisk -l

fdisk /dev/sda


df - report file system disk space usage
df -h


du - estimate file space usage
du -hs


ls - list (on Windows this is the same as "dir")
ls

ls -l

ls -la

ls -lah


touch - change file timestamps - Can be used to create empty files (aka: 0byte file)
touch /file1


mkdir - make directories
mkdir /home/dir

create the directories because some of the directories in the desired path do not exist - this will create the path in it's entireity
mkdir -p /home/directory/dir

mkdir -p /home/directory/{dir1,dir2,dir3}


rm - delete files
rm

rm /file1 /file2

used to remove a directory (recursive)
rm -r /dir1 /dir2

rm -rf /dir1 /dir2 /file1 /file2


cp /file1 /file2

copy a directory (recursive)
cp -R /dir1 /dir2


grep - searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to the given PATTERN. By default, grep prints the matching lines.
grep

grep <string> file1

ex:
grep root /etc/passwd


Working example using ls & grep
ls -la /etc | grep passwd


mount - mount a file system
mount

mount -a

mount -t ext3 /dev/sda1 /boot

mount -t ntfs-g3 /dev/sda5 /mnt/windows


umount - unmount file systems
umount

umount -a
Posted on: 2010/2/15 19:48
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Links