Over quota? "du -sh * | sort -h " will give you a sorted list of your
directory sizes.
-- David Scheidt <dscheidt@tumbolia.com>
FreeBSD Fortune
Posts
-
Over quota? -
To do a fast search for a file, tryTo 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. -
Want to see how much virtual memory you're using?Want to see how much virtual memory you're using? Just type "swapinfo" to
be shown information about the usage of your swap partitions. -
Having trouble using fetch through a firewall?Having trouble using fetch through a firewall? Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details. -
Want to run the same command againWant to run the same command again?
In many shells (e.g., tcsh, zsh, bash) you can type "!!". -
If other operating systems have damaged your Master Boot Record, you canreinstall it with gpart(8).If other operating systems have damaged your Master Boot Record, you can
reinstall it with gpart(8). See
"man gpart" for details. -
Time to change your password?Time to change your password? Type "passwd" and follow the prompts.
-- Dru <genesis@istar.ca> -
You can limit the depth of the displayed datasets in the "zfs list" outputusing the -d parameter.You can limit the depth of the displayed datasets in the "zfs list" output
using the -d parameter. To display only the first level of datasets below
mypool/usr and not the ones deeper than those, run this command:zfs list -d 1 mypool/usr
-- Benedict Reuschling <bcr@FreeBSD.org>
-
Simple tcsh prompt: set prompt = '%# 'Simple tcsh prompt: set prompt = '%# '
-
You can delete a range of ZFS snapshots (a-z) in multiple waysYou can delete a range of ZFS snapshots (a-z) in multiple ways.
The following will delete d and all earlier snapshots:zfs destroy mypool/data@%d
To delete d and all later snapshots:
zfs destroy mypool/data@d%
To delete all dataset snapshots:
zfs destroy mypool/data@%
Make sure to let ZFS perform a dry run (-n option) first and display (-v) what
it would do to confirm that the delete operation is removing exactly what you
intended.
-- Benedict Reuschling <bcr@FreeBSD.org> -
You can use the 'fetch' command to retrieve files over ftp, http or https.You can use the 'fetch' command to retrieve files over ftp, http or https.
fetch https://www.FreeBSD.org/images/beastie.png
will download the beastie image from the FreeBSD web site.
-
Having trouble using fetch through a firewall?Having trouble using fetch through a firewall? Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details. -
"man ports" gives many useful hints about installing FreeBSD ports."man ports" gives many useful hints about installing FreeBSD ports.
-
Can't remember if you've installed a certain port or not?Can't remember if you've installed a certain port or not? Try "pkg info
-x port_name". -
Want to find a specific port?Want to find a specific port? Just type the following under /usr/ports
or one of its subdirectories:make search name=<port-name>
or
make search key=<keyword> -
Want to go the directory you were just inWant to go the directory you were just in?
Type "cd -" -
Want colour in your directory listings?Want colour in your directory listings? Use "ls -G". "ls -F" is also useful,
and they can be combined as "ls -FG". -
You can install extra packages for FreeBSD by using the ports systemYou can install extra packages for FreeBSD by using the ports system.
If you have installed it, you can download, compile, and install software by
just typing# cd /usr/ports/<category>/<portname>
# make install && make cleanas root. The ports infrastructure will download the software, change it so
it works on FreeBSD, compile it, install it, register the installation so it
will be possible to automatically uninstall it, and clean out the temporary
working space it used. You can remove an installed port you decide you do not
want after all by typing# cd /usr/ports/<category>/<portname>
# make deinstallas root.
-
"man hier" will explain the way FreeBSD filesystems are normally laid out."man hier" will explain the way FreeBSD filesystems are normally laid out.
-- David Scheidt <dscheidt@tumbolia.com> -
You can press Ctrl-D to quickly exit from a shell, or logout from alogin shell.You can press Ctrl-D to quickly exit from a shell, or logout from a
login shell.
-- Konstantinos Konstantinidis <kkonstan@duth.gr>