Jump to content

Unix Intro: Difference between revisions

713 bytes added ,  15 November 2009
no edit summary
No edit summary
No edit summary
Line 86: Line 86:


== Basic Unix commands ==
== Basic Unix commands ==
==== apropos & man===
These are arguably the two most useful UNIX commands.
The 'man' command brings up a manual on a command. There is a man page for pretty much every command (although quality of the pages differ vastly). Here's an example:
[[Image:manpage1.png]]
And the result will be:
[[Image:manpage2.png]]
You can navigate through the man page with arrow keys or page up/down.
The 'apropos' command searches through descriptions of man pages based on a keyword.
Lets say you forgot how to rename a file, or just simply didn't know how to to begin with you can type:
[[Image:apropos1.png]]
and the result will be:
[[Image:apropos2.png]]
Simple (and really useful too).
=== creating files ===


Say you wanted to create a file in your home directory called 'phonenumbers'. You need to use an editor. The editor on Redbrick that is the best to use when you're starting off, is nano. In fact, lots of experienced users still use it. So, to create your file, you would type:
Say you wanted to create a file in your home directory called 'phonenumbers'. You need to use an editor. The editor on Redbrick that is the best to use when you're starting off, is nano. In fact, lots of experienced users still use it. So, to create your file, you would type: