May 30, 2016

Unix - finding programs

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.

May 30, 2016

Unix - Aliases

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. Read more

May 30, 2016

Unix - less or more

Need to do a search in a man page or in a file you’ve sent to a pager (like less or more)? Use “/search_word”. To repeat the same search, type “n” for next.

May 30, 2016

FreeBSD - man pages

FreeBSD and other Unix systems use man pages for system documentation, they are called by the man command. For FreeBSD the following are useful man pages: man firewall will give advice for building a FreeBSD firewall man hier will explain the way FreeBSD filesystems are normally laid out. Man pages are divided into section depending on topic. There are 9 different sections numbered from 1 (General Commands) to 9 (Kernel Developer’s Manual). Read more

May 8, 2016

FreeBSD - man pages

Ever wonder what those numbers after command names were, as in cat(1)? It’s the section of the manual the man page is in. man man will tell you more.

May 8, 2016

FreeBSD - wheel group

Any user that is a member of the wheel group can use su - to simulate a root login. You can add a user to the wheel group by editing /etc/group.

May 8, 2016

FreeBSD - Aliases

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’. Read more

© Arnold Greyling 2020

Powered by Hugo & Kiss.