Tips & Tricks


Time to change your password? Type "passwd" and follow the prompts.
		-- Dru <genesis at istar.ca>
To change an environment variable in /bin/sh use:

	$ VARIABLE="value"
	$ export VARIABLE
To change an environment variable in tcsh you use: setenv NAME "value"
where NAME is the name of the variable and "value" its new value.
To clear the screen, use "clear". To re-display your screen buffer, press
the scroll lock key and use your page up button. When you're finished,
press the scroll lock key again to get your prompt back.
		-- Dru <genesis at istar.ca>
To determine whether a file is a text file, executable, or some other type
of file, use

	file filename
		-- Dru <genesis at istar.ca>
To do a fast search for a file, try

	 locate filename

locate uses a database that is updated every Saturday (assuming your computer
is running FreeBSD at the time) to quickly find files based on name only.
To erase a line you've written at the command prompt, use "Ctrl-U".
		-- Dru <genesis at istar.ca>
To find the hostname associated with an IP address, use

	drill -x IP_address
		-- Allan Jude <allanjude at freebsd.org>
To obtain a neat PostScript rendering of a manual page, use ``-t'' switch
of the man(1) utility: ``man -t <topic>''.  For example:

	man -t grep > grep.ps	# Save the PostScript version to a file
or
	man -t printf | lp	# Send the PostScript directly to printer
To quickly create an empty file, use "touch filename".
		-- Dru <genesis at istar.ca>
Page:    1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12