Pending
From Sfvlug
(→Newbie Command line Essentials) |
(→Additional Useful Commands) |
||
Line 36: | Line 36: | ||
ifdown - take a network interface down (ex. ifdown eth0) | ifdown - take a network interface down (ex. ifdown eth0) | ||
- | ==Additional Useful | + | ==Additional Useful Info You Should Learn== |
- | + | Note: These your should pursue in your own time using the commands listed above for additional information! | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | General: alias, free, jobs, fg, dmesg, uname, xargs | |
- | + | Pattern Matching: grep, rgrep, egrep, fgrep | |
- | + | Process: top, ps, pgrep, nice, renice, kill, pkill, killall | |
- | route | + | Network: route, traceroute, arp, netstat, ping |
- | + | File and Filesystem: cp, mv, rm, ls, cd, chmod, chown, cat, du, df, lsof | |
- | + | Conveniences: ssh-agent, keychains, screen | |
- | + | Debian Package Manager: apt-get, dpkg, apt-cache, apt-file (Note: Debian based distribution specific) | |
- | + | Files and File Locations: /etc/passwd, /etc/hosts, /etc/hosts.allow, /etc/hosts.deny, /etc/hostname, /etc/resolv.conf, /etc/groups, | |
- | + | /etc/fstab, /etc/modules, ~/.bashrc, ~/.bash_profile, ~/.bash_aliases | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Note: | + | |
- | + | ||
- | / | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Revision as of 08:29, 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). Note: Commands in no particular order examples not applicable in all distributions or setups.
Info
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)
Keystrokes
<ctrl>r - reverse keyword search of the command history (ex. <ctrl>r<keyword> / - 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)
Network
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 Info You Should Learn
Note: These your should pursue in your own time using the commands listed above for additional information!
General: alias, free, jobs, fg, dmesg, uname, xargs Pattern Matching: grep, rgrep, egrep, fgrep Process: top, ps, pgrep, nice, renice, kill, pkill, killall Network: route, traceroute, arp, netstat, ping File and Filesystem: cp, mv, rm, ls, cd, chmod, chown, cat, du, df, lsof Conveniences: ssh-agent, keychains, screen Debian Package Manager: apt-get, dpkg, apt-cache, apt-file (Note: Debian based distribution specific) Files and File Locations: /etc/passwd, /etc/hosts, /etc/hosts.allow, /etc/hosts.deny, /etc/hostname, /etc/resolv.conf, /etc/groups, /etc/fstab, /etc/modules, ~/.bashrc, ~/.bash_profile, ~/.bash_aliases