FreeBSD: 102 Tips and Tricks

FreeBSD Tip: #91

You can press Ctrl-D to quickly exit from a shell, or logout from a
login shell.
		-- Konstantinos Konstantinidis <kkonstan at duth.gr>

FreeBSD Tip: #92

You can press Ctrl-L while in the shell to clear the screen.

FreeBSD Tip: #93

You can press up-arrow or down-arrow to walk through a list of
previous commands in tcsh.

FreeBSD Tip: #94

You can search for documentation on a keyword by typing

	apropos keyword

FreeBSD Tip: #95

You can `set autologout = 30' to have tcsh log you off automatically
if you leave the shell idle for more than 30 minutes.

FreeBSD Tip: #96

You can use aliases to decrease the amount of typing you need to do to get
commands you commonly use.  Examples of fairly popular aliases include (in
Bourne shell style, as in /bin/sh, bash, ksh, and zsh):

	alias lf="ls -FA"
	alias ll="ls -lA"
	alias su="su -m"

In csh or tcsh, these would be

	alias lf ls -FA
	alias ll ls -lA
	alias su su -m

To remove an alias, you can usually use 'unalias aliasname'.  To list all
aliases, you can usually type just 'alias'.

FreeBSD Tip: #97

You can use /etc/make.conf to control the options used to compile software
on this system.  Example entries are in
/usr/share/examples/etc/make.conf.

FreeBSD Tip: #98

You can use "pkg_info" to see a list of packages you have installed.
		-- Konstantinos Konstantinidis <kkonstan at duth.gr>

FreeBSD Tip: #99

You can use the 'fetch' command to retrieve files over ftp or http.

	 fetch http://www.FreeBSD.org/index.html

will download the front page of the FreeBSD web site.

FreeBSD Tip: #100

You can use "whereis" to search standard binary, manual page and source
directories for the specified programs. This can be particularly handy
when you are trying to find where in the ports tree an application is.

Try "whereis firefox" and "whereis whereis".
		-- Konstantinos Konstantinidis <kkonstan at duth.gr>

FreeBSD Tip: #101

Want to run the same command again?
In tcsh you can type "!!"

FreeBSD Tip: #102

Want to go the directory you were just in?
Type "cd -"

You may also like...