Unix Intro: Difference between revisions

Jump to navigation Jump to search
987 bytes added ,  15 November 2009
no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
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:
Line 215: Line 244:


to get detailed instructions on that command. The best way to learn Unix is to experiment, just be careful when you're going around deleting stuff. :) This is just a primer for those of you starting off on Unix, but there are numerous tutorials on unix to be found on the web and you can always talk to [[Helpdesk]] if you have a problem or a question.
to get detailed instructions on that command. The best way to learn Unix is to experiment, just be careful when you're going around deleting stuff. :) This is just a primer for those of you starting off on Unix, but there are numerous tutorials on unix to be found on the web and you can always talk to [[Helpdesk]] if you have a problem or a question.
=== clear ===
Oh, one other thing: the clear command.
If your screen is filled up with text or program you've quit out of and are basically just in the way you can clear your screen like so:
[[Image:clear.jpg]]
And you'll be left with this:
[[Image:clear2.jpg]]
Yay.


== Links ==
== Links ==

Navigation menu