UNIX Basics
A. Miyoshi
A. Miyoshi
Here, basic knowledge of UNIX is briefly summarized. This is not intended to be used for learning UNIX. For this purpose, consult an appropriate textbook or information on web pages.
ls
and cp
,
it is executed as a foreground job. Until the job is completed,
a prompt will not appear and thus the next commend cannot be issued.
Since a numerical calculation job, such as a Gaussian job, takes some
time for completion, and is usually executed as a background job,
by typing "&" at the end of the command.
-f
, -r
, and -R
by
using man
command etc.
frequently used options | ||
ls | Display files and/or directories | -l , -a |
cp | Copy a file or a directory | -R |
mv | Move a file or a directory | |
rm | Remove a file (or a directory) | -r , -f |
mkdir | Create a directory | |
rmdir | Remove a directory | |
cd | Change the current directory | |
pwd | Print the current directory |
-r , -R | Include lower directories |
-i | Prompt before remove or overwrite |
-f | Do not prompt before remove or overwrite |
-a | (ls ) Show hidden files |
-l | (ls ) Use detailed format with one line for a file |
top
or ps
.
Examples of major job-handling commands are summarized below.
top
q
to quit.
ps xuf
x
) in user-friendly (u
) forest (f
) format.
kill 121212