Pending

From Sfvlug

(Difference between revisions)
(Additional Useful Commands)
(Newbie Command line Essentials)
Line 7: Line 7:
Search and documentation tools are some of the most important tools you can learn on your box heres a brief list of a few of the most popular, all of which can be accessed through your terminal (xterm, rxvt, etc...) or console (<ctrl><alt>F1...F6).
Search and documentation tools are some of the most important tools you can learn on your box heres a brief list of a few of the most popular, all of which can be accessed through your terminal (xterm, rxvt, etc...) or console (<ctrl><alt>F1...F6).
-
hrm maybe I should restructure with a few examples of each for this part
+
man - an interface to the on-line reference manuals (ex: man hier)
 +
find - search the manual page names and descriptions (ex: find ~ -name '*.mp3')
 +
locate - security Enhanced version of the GNU Locate (ex: locate hosts)
 +
updatedb - update the slocate database (ex: updatedb&)
 +
which - locate a command (ex: which ifconfig)
 +
whereis - locate the binary, source, and manual page files for a command (ex. whereis ifconfig)
 +
hier - description of the file system hierarchy (ex. man hier)
 +
apropos - search the manual page names and descriptions (ex. apropos <keyword>)
 +
less - page through text one screenful at a time allowing for forward and backward movement in the file (ex. less /usr/share/doc/debian/debian-manifesto)
 +
su - change user ID or become super-user (ex. su - <passwd>)
 +
sudo - execute a command as another user (ex. sudo /etc/init.d/networking)
-
''' Search, Documentation and General Information Essential Tools:'''
+
  history - display the list of commands previously typed (ex. history)
-
  man - an interface to the on-line reference manuals (usage: man <manual page>)
+
-
find - search the manual page names and descriptions (usage: find <path> -name <pattern>)
+
-
locate - Security Enhanced version of the GNU Locate (usage:)
+
-
updatedb - update the slocate database
+
-
which - locate a command
+
-
whereis - locate the binary, source, and manual page files for a command
+
-
hier - Description of the file system hierarchy
+
-
apropos - search the manual page names and descriptions
+
-
history -
+
  <ctrl>r
  <ctrl>r
-
;
+
-
  *
+
  / - search forward for occurance of keyword in a manpage, many editors and pagers (ex. /<keyword>)
-
  n
+
  ? - search backward for occurance of keyword in a manpage, many editors and pagers (ex. ?<keyword>)
-
  less
+
  n - continue to the next occurance of the keyword searches listed above (ex. n)
-
'''Networking Information and Related Essential Tools:'''
+
'''The basic command line essentials needed to bring up a network interface to connect to the internet'''
-
  ifconfig - configure a network interface
+
  ifconfig - configure a network interface (ex. ifconfig eth0 192.168.0.2)
-
  route - show / manipulate the IP routing table
+
  route - show / manipulate the IP routing table (ex. route add -net default gw 192.168.0.1)
-
  iwconfig - configure a wireless network interface
+
  iwconfig - configure a wireless network interface (ex. iwconfig eth2 essid GaylesPerk channel 11 mode auto)
-
  iwlist - Get more detailed wireless information from a wireless interface
+
  iwlist - get more detailed wireless information from a wireless interface (ex. iwlist eth2 scan)
-
  ifup - bring a network interface up
+
  ifup - bring a network interface up (ex. ifup eth0)
-
  ifdown - take a network interface down
+
  ifdown - take a network interface down (ex. ifdown eth0)
==Additional Useful Commands==
==Additional Useful Commands==

Revision as of 07:19, 13 December 2006

Under Construction! (recategorise, review, augment, and add descriptions after more sleep)

Newbie Command line Essentials

If you don't know your commandline very well at least know the tools that you have at your disposal to find the information and operate most efficiently. This section will contain only the entries that will enable you to maximize your productivity at the command line.

Search and documentation tools are some of the most important tools you can learn on your box heres a brief list of a few of the most popular, all of which can be accessed through your terminal (xterm, rxvt, etc...) or console (<ctrl><alt>F1...F6).

man - an interface to the on-line reference manuals (ex: man hier)
find - search the manual page names and descriptions (ex: find ~ -name '*.mp3')
locate - security Enhanced version of the GNU Locate (ex: locate hosts)
updatedb - update the slocate database (ex: updatedb&)
which - locate a command (ex: which ifconfig)
whereis - locate the binary, source, and manual page files for a command (ex. whereis ifconfig)
hier - description of the file system hierarchy (ex. man hier)
apropos - search the manual page names and descriptions (ex. apropos <keyword>)
less - page through text one screenful at a time allowing for forward and backward movement in the file (ex. less /usr/share/doc/debian/debian-manifesto)
su - change user ID or become super-user (ex. su - <passwd>)
sudo - execute a command as another user (ex. sudo /etc/init.d/networking)
history - display the list of commands previously typed (ex. history)
<ctrl>r

/ - search forward for occurance of keyword in a manpage, many editors and pagers (ex. /<keyword>)
? - search backward for occurance of keyword in a manpage, many editors and pagers (ex. ?<keyword>)
n - continue to the next occurance of the keyword searches listed above (ex. n)

The basic command line essentials needed to bring up a network interface to connect to the internet

ifconfig - configure a network interface (ex. ifconfig eth0 192.168.0.2)
route - show / manipulate the IP routing table (ex. route add -net default gw 192.168.0.1)
iwconfig - configure a wireless network interface (ex. iwconfig eth2 essid GaylesPerk channel 11 mode auto)
iwlist - get more detailed wireless information from a wireless interface (ex. iwlist eth2 scan)
ifup - bring a network interface up (ex. ifup eth0)
ifdown - take a network interface down (ex. ifdown eth0)

Additional Useful Commands

Search, Documentation and General Information Related Tools:

alias
du
df
free
top
lsof
help  Display helpful information about the builtin commands

Networking Information and Related Tools:

hostname
ping
route
traceroute
arp
netstat

Files You Should Know Exist:

passwd
hosts
hosts.allow
hosts.deny
hostname
version
resolv.conf
groups
.bash_profile
.bashrc
.bash_aliases
fstab
modules.conf
dhclient.conf

Paths You Should Know Exist: Note: see man hier for general overview

/usr/share/doc
/usr/local/doc
/var/log
/etc
/etc/init.d
/etc/alternatives

Conveniences:

ssh-agent
keychains
screen

Basics:

cp
mv
rm
ls
cd
chmod
chown
cat

Essential Keystrokes:

?
*
~
.
./
|
n
<ctrl>r
!      Start  a  history substitution, except when followed by a blank,
!n
!-n
!!
!string
!?string/n
less v

addme

grep rgrep egrep fgrep
xargs
su 
sudo
package manager commands just names not all the options better kept in a different nonessential ref
Personal tools