31.10.2012 Views

The Databar System at DTU - G-Bar Wiki

The Databar System at DTU - G-Bar Wiki

The Databar System at DTU - G-Bar Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 <strong>The</strong> G-<strong>Bar</strong> 17<br />

Making and changing documents ASCII files can be revised with an<br />

editor, keying in the contents without hidden form<strong>at</strong>ing characters (as in Microsoft<br />

Word and other applic<strong>at</strong>ion programs). This command is used, for<br />

example, in writing programs and LATEX documents.<br />

An editor th<strong>at</strong> is simple to use is nedit. If you write<br />

n-62-14-4(s001234) $ nedit doc1<br />

a window, which shows you the full contents of doc1 and in which you can<br />

change the contents, opens<br />

<strong>The</strong>re are myriads of editors on the system. More advanced users often<br />

prefer emacs, which is a powerful editor th<strong>at</strong> knows the syntax for many programming<br />

languages and also for LATEX.<br />

Manuals about UNIX-commands <strong>The</strong>re are a lot of UNIX commands,<br />

and some of them are associ<strong>at</strong>ed with a number of parameters.<br />

A useful command th<strong>at</strong> links to online manuals is man. For example,<br />

n-62-14-4(s001234) $ man cp<br />

refers to online UNIX manuals and from there gives you a thorough explan<strong>at</strong>ion<br />

of how to use the command cp for copying documents.<br />

Sometimes it is still hard to know wh<strong>at</strong> command to use. In this case, it is<br />

a good idea to use the command man -k with the keyword as the argument.<br />

<strong>The</strong> command<br />

n-62-14-4(s001234) $ man -k copy<br />

will, for example, give you a list of commands th<strong>at</strong> can be used in connection<br />

with copying. <strong>The</strong> list includes the command cp.<br />

Another useful command like the man command is info, which gives a bit<br />

more advanced inform<strong>at</strong>ion, and sometimes it also tells more about programs<br />

than man does.<br />

Other sources of inform<strong>at</strong>ion UNIX (incl. Linux) is being more and more<br />

widely distributed, so there are a lot of other places to find inform<strong>at</strong>ion as well,<br />

such as Google. At the G-<strong>Bar</strong> home page you can also find some good links to<br />

inform<strong>at</strong>ion about UNIX.<br />

6.5.3 Setting up a command environment<br />

UNIX commands are executed in certain environments, and it can be useful for<br />

the more experienced user to alter these environments. This section describes<br />

briefly how to check the UNIX environment and alter it.<br />

around the protection default if you use the direct p<strong>at</strong>h rm:<br />

n-62-14-4(s001234) $ /bin/rm -r newdir<br />

which deletes all files in the newdir without asking for confirm<strong>at</strong>ion before deleting each one.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!