diff options
author | eadler <eadler@FreeBSD.org> | 2012-05-09 22:13:56 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-05-09 22:13:56 +0000 |
commit | 1d7eb4dfbb608d07c0a958a11a2d49a3d8ac8ff1 (patch) | |
tree | 2ee55511b069926f1198b4d963fb2c9467ee59e9 | |
parent | b9dff5c3f7e2a3b82e7723e8662576a455d6718c (diff) | |
download | FreeBSD-src-1d7eb4dfbb608d07c0a958a11a2d49a3d8ac8ff1.zip FreeBSD-src-1d7eb4dfbb608d07c0a958a11a2d49a3d8ac8ff1.tar.gz |
Add a few new tips and update some old ones to more modern commands
MFC after: 1 week
-rw-r--r-- | games/fortune/datfiles/freebsd-tips | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index 4665018..e5fda99 100644 --- a/games/fortune/datfiles/freebsd-tips +++ b/games/fortune/datfiles/freebsd-tips @@ -73,8 +73,7 @@ If you need to ask a question on the FreeBSD-questions mailing list then contains lots of useful advice to help you get the best results. % -If you `set filec' (file completion) in tcsh and write a part of the -filename, pressing TAB will show you the available choices when there +pressing TAB will show you the available choices when there is more than one, or complete the filename if there's only one match. % If you `set watch = (0 any any)' in tcsh, you will be notified when @@ -122,9 +121,6 @@ In order to support national characters for European languages in tools like less without creating other nationalisation aspects, set the environment variable LC_ALL to 'en_US.ISO8859-1'. % -In tcsh, you can `set autolist' to have the shell automatically show -all the possible matches when doing filename/directory expansion. -% "man firewall" will give advice for building a FreeBSD firewall -- David Scheidt <dscheidt@tumbolia.com> % @@ -192,13 +188,6 @@ flag is your gateway. Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ ' -- Mathieu <mathieu@hal.interactionvirtuelle.com> % -Nice tcsh prompts: - set prompt = '[%B%m%b] %B%~%b%# ' - set prompt = '%m %# ' - set prompt = '%n@%m%# ' - set prompt = '%n@%m:%/%# ' - set prompt = '%n@%m:%~%# ' -% Over quota? "du -s * | sort -n " will give you a sorted list of your directory sizes. -- David Scheidt <dscheidt@tumbolia.com> @@ -263,7 +252,7 @@ To quickly create an empty file, use "touch filename". -- Dru <genesis@istar.ca> % To read a compressed file without having to first uncompress it, use -"zcat" or "zmore" to view it. +"zcat" or "zless" to view it. -- Dru <genesis@istar.ca> % To repeat the last command in the C shell, type "!!". @@ -282,7 +271,7 @@ will search '/', and all subdirectories, for files with 'GENERIC' in the name. % To see all of the directories on your FreeBSD system, type - ls -R / | more + ls -R / | less -- Dru <genesis@istar.ca> % To see how long it takes a command to run, type the word "time" before the @@ -322,12 +311,12 @@ been replaced with other messages, look at /var/run/dmesg.boot. Want colour in your directory listings? Use "ls -G". "ls -F" is also useful, and they can be combined as "ls -FG". % -Want to find a specific port, just type the following under /usr/ports, +Want to find a specific port, just type the following or one its subdirectories: - "make search name=<port-name>" + "make -C /usr/ports search name=<port-name>" or - "make search key=<keyword>" + "make -C /usr/ports search key=<keyword>" % Want to know how many words, lines, or bytes are contained in a file? Type "wc filename". @@ -479,3 +468,9 @@ when you are trying to find where in the ports tree an application is. Try "whereis firefox" and "whereis whereis". -- Konstantinos Konstantinidis <kkonstan@duth.gr> % +Want to run the same command again? +In tcsh you can type "!!" +% +Want to go the directory you were just in? +In tcsh you can type "cd -" +% |