13b. wcc iii - mcd2 installation guide, Common linux commands – WattMaster WCC III part 14 User Manual

Page 43

Advertising
background image

13B. WCC III - MCD2 INSTALLATION GUIDE

WCC III Technical Guide

13B-41

Common Linux Commands

passwd

Changes

your

password

write username

Sends a message to another person using the system. To prevent someone from writing to you, see the

mesg

n

command.

clear

Clears

the

screen.

ps

Displays information about your processes/jobs/programs which are running on the server.

cd

Change directory; cd .. moves you backwards to the next higher subdirectory level; cd / moves you to the

highest

directory

level.

mkdir new_directory

Makes a new subdirectory with the name specifi ed by new_directory

1.

cp

Copy is like the rename command use as follows “cp fi lename1 fi lename2” and this leaves the old

fi le intact and makes a new copy with a new fi lename.

df

Displays how much space on the disks (hard drive partitions) is free.

rm

Removes

or

deletes

fi les; the -i option asks you to confi rm that you want to delete each fi le; the -r option is

dangerous because it allow you to delete an entire directory and all of the fi les it contains.

rmdir

Removes a directory; you can use the -i and -r options which are described in the rm command.

w

Provides information concerning who is logged into the system and some details on how they are connected.

who

Tells you who is using the server at that time.

date

Displays or changes date or time in this format Day/Month/Date - Time / Time Zone / Year

Different program than under wine cmd command line interpreter.

mv

Renames

a

fi le or moves it from one fi lename or directory to another; the -i option tells mv to prompt you

before it replaces an existing fi lename.

help

Provides online help; several topics have been included in the help system available on the servers.

ifconfi g –a

Ifconfi g is used to confi gure the kernel-resident network interfaces. It is used at boot time to set up interfaces

as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no

arguments

are

given,

ifconfi g displays the status of the currently active interfaces. If a single interface

argument is given, it displays the status of the given interface only; if a single -a argument is given, it

displays the status of all interfaces, even those that are down. Otherwise, it confi gures an interface.

Command Line prompts
/ - root directory
./ - current directory
./command_name - run a command in the current directory when the current directory is not on the path
../ - parent directory
~ - home directory
$ - typical prompt when logged in as ordinary user
# - typical prompt when logged in as root or superuser
! - repeat specifi ed command
!! - repeat previous command
^^ - repeat previous command with substitution
& - run a program in background modex[Tab][Tab] - prints a list of all available completions for a command, where the beginning is
``x’’

Advertising