Master Unix Linus Commands by gm758us

VIEWS: 0 PAGES: 38

									                   UNIX / Linux Command Summary
$ while

& operator

300, 300s

4014

450

access()



alias, unalias

apropos

asa

assign, deassign

at, batch

atdialer

auths

awk, oawk, nawk

banner

basename

batch

bc

bdiff

bfs

bg, fg
break

Cal


calendar

cancel

Case $string in

case operator

cat

cd

char *path;

checkmail

chgrp

chmod

chown

chown


cksum

clear

cmp



col

comm
command

commands

compress, uncompress, zcat

continue statement

copy

corex

cp

cpio(copy input/output)

cpset

creat()



cron

crontab

crypt

csh

csplit

ct

ctags

cu
cut




date

dc

dd

deassign

deroff

devnm

df

dfspace

diff



diff3

dircmp

dirname

disable

diskcmp

diskcp, diskcmp

doscat
doscmd: doscat, doscp,
dosdir, dosformat,
dosmkdir, dosls, dosrm,
dosrmdir

doscp

dosdir

dosformat

dosls

dosmkdir

dosrm

dosrmdir

dspmsg

dtox

dtype

du

echo

ed, red

edit

egrep

else

enable
env

ex, edit

exit command

expand

expr command



factor

FALSE

fc

feeds)



fg

fgrep

fi

File



find



finger

fixhdr

fold
for operator

format

fsck

ftpcount

ftpwho

getconf

getopt

getoptcvt

getprops

gets

getserno

grave operator

greek

grep, egrep, fgrep



hash

hashcheck

hashmake

hd
head

hello

HOME

hp

hwconfig

i286

i286emul

i386

i486

iAPX286

iconv

id

If expression;

if operator

in

ismpx

jobs

join

jterm
jwin

kill

ksh, rksh

l

last

layers

lc

ldd

less

lesskey

lf

line

ln

locale

localedef

lock

logger

LOGNAME

lp, lpr
lprint

lpstat, rlpstat

lr

ls, l, lc, lf, lr, lx

lx

m4

machid

mail, mailx

make.dialer

man

mcart

mcs

menu

menu_colors.sh

mesg

mkdir

mkfifo

mknod

mnt, umnt
more, page, less

mv



nawk

newform

newgrp

news

ni

nice

nl

nohup

oawk

od

pack, pcat, unpack

page

passwd

paste

PATH

pathchk
pax

pcat

pcpio

pfmt

pg

pipe

Pkginfo

pkgmk

pkgparam

pkgproto

pkgtrans

pr

printenv

printf

prwarn

ps

PS1

pstat

ptar
purge

pwd

random

rcp.mn

rcvalert

rcvfile

rcvprint

rcvtrip

read

recon

red

remote

renice

resend

rksh

rlpstat

rm



rmdir
rsh


scosh


sddate


sdiff


sed


setcolor, setcolour


setkey


setpgrp


setsizecvt


sg


sh


shl


sift command


Sleep


slot



sort


spell, hashmake, spellin,
hashcheck
spellin


spline


split


strings


stty, STTY


su


sum


sync


system0


tabs


tail


tape


tapecntl


tapedump


tar


tee


test command
Then


tic


time


touch


tput


tr


translate


TRUE


tset


tty


type


ulimit


umask


umnt


unalias


uname


uncompress
undelete


unexpand


uniq


units


unpack


until


uptime


usemouse


uucp, uulog, uuname


uuencode, uudecode


uulog


uuname


uupick


uustat


uuto, uupick


uux


vacation
vedit


vi, view, vedit


vidi


view


vmstat


w, uptime


wait


wall


wc




what


whatis


who



whodo


write


x286emul


xargs
xtod


xtract


yes


zcat
    UNIX / Linux Command Summary
Ø do

execute a command as a background process.

handle special functions of DASI 300 and 300s terminals

paginator for the TEKTRONIX 4014 terminal

handle special functions of the DASI 450 terminal

Used to check the accessibility of files. int Access(pathname, access_mode) -
Char* pathname; - int access-mode; - The access modes are. - 04 read - 02 write -
01 execute (search) - 00 checks existence of a file
create, display, or delete alias definitions

locate commands by keyword lookup

interpret printer control codes

assign and deassign devices

execute commands at a later time

configurable modem dialer for UUCP

list and/or restrict kernel privileges

pattern scanning and processing language

prints the specified string in large letters. Each argument may be upto 10 characters
long.
remove directory names from pathnames

schedule jobs for execution when the system load permits

invoke a calculator

compare files too large for diff(C)

scan big files

run jobs in the background or foreground
is used to break out of a loop. It does not exit from the program.

Produces a calender of the current month as standard output. The month (1-12) and
year (1-9999) must be specified in full numeric format. Cal [[ month] year]
invoke a reminder service

cancel requests to lineprinter

Pattern 1) Command list;; Command list;; Pattern 3) Command list;; easc

The case operator is used to validate multiple conditions.

(for concatenate) command is used to display the contents of a file. Used without
arguments it takes input from standard input <Dtrl d> is used to terminate input.
change working directory

int mode;

check for MMDF mail that has been submitted but not delivered

Changes the group that owns a file. Chgrp [grou -id] [filename]

Allows file permissions to be changed for each user. File permissions can be
changed only by the owner (s). Chmod [+/-][rwx] [ugo] [filename]
change owner ID

Used to change the owner of a file. The command takes a file(s) as source files and
the login id of another user as the target. Chown [user-id] [filename]
write file checksums and sizes

clear a terminal screen

The cmp command compares two files (text or binary) byte-by-byte and displays
the first occurrence where the files differ. Cmp [filename1] [filename2] -1 gives a
long listing

filter reverse linefeeds -

The comm command compares two sorted files and displays the instances that are
common. The display is separated into 3 columns. Comm. filename1 filename2
first displays what occurs in first files but not in the second second displays what
occurs in second file but not in first third displays what is common in both files
execute a simple command

efile; then

compress data for storage, uncompress and display compressed files

The rest of the commands in the loop are ignored. It moves out of the loop and
moves on the next cycle.
copy groups of files

convert new-style core image dumps to old-style

The cp (copy) command is used to copy a file. Cp [filename1] [filename2]

Utility program used to take backups. Cpio operates in three modes: -o output -i
input -p pass
install object files in binary directories

the system call creates a new file or prepares to rewrite an existing file. The file
pointer is set to the beginning of file. #include<sys/tyes.h> #include<sys/stat.h> int
creat(path, mode)
execute commands scheduled by at, batch, and crontab

schedule commands to be executed at regular intervals

encode/decode

invoke a shell command interpreter with C-like syntax

split files according to context

spawn getty to a remote terminal

create a tags file

call another UNIX/XENIX system
used to cut out parts of a file. It takes filenames as command line arguments or
input from standard input. The command can cut columns as well as fields in a file.
It however does not delete the selected parts of the file. Cut [-ef] [column/fie,d]
filename Cut-d ":" -f1,2,3 filename Where -d indicates a delimiter specified within
":"
print and set the date

invoke an arbitrary precision calculator

convert and copy a file

deassign devices

remove nroff/troff, tbl, and eqn constructs

identify device name

used to find the number of free blocks available for all the mounted file systems.
#/etc/df [filesystem]
report disk space

the diff command compares text files. It gives an index of all the lines that differ in
the two files along with the line numbers. It also displays what needs to be changed.
Diff filename1 filename2
compare three files

compare directories

deliver directory part of pathname

turn off terminals and printers

compare floppy disks

copy or compare floppy disks

display a DOS file
manipulates DOS files and filesystems




copies a DOS file to UNIX system

list DOS directories in the DOS DIR style

format a DOS floppy

lists DOS directories in the UNIX system ls style

make a directory on a DOS disk

remove files from a DOS disk

remove directories from a DOS disk

print message from message catalog

change file format from MS-DOS to UNIX

determine disk type

summarize disk usage

The echo command echoes arguments on the command line. echo [arguments]

invoke the text editor

invoke a novice version of the ex text editor

search a text file for one or more patterns

do commands

turn on terminals and line printers
Displays the permanent environment variables associated with a user's login id

invoke a text editor

Used to stop the execution of a shell script.

convert tabs to spaces

Expr (command) command is used for numeric computation. The operators +
(add), -(subtract), *(multiplu), /(divide), (remainder) are allowed. Calculation are
performed in order of normal numeric precedence.
factor a number

return with a non-zero exit value

process the command history list

-t when used with -v, it causes tabs to be printed as ^I's - -e when used with -v, it
causes $ to be printed at the end of each line - The -t and -e options are ignored if
the -v options is not specified.
run jobs in the foreground

search a text file for a fixed string

many different tests are possible for files. Comparing numbers, character strings,
values of environment variables.
The test commands also uses special operators [ ]. These are operators following
the of are interpreted by the shell as different from wildcard characters. - Of [ -f
${variable} ]
The find command searches through directories for files that match the specified
criteria. It can take full pathnames and relative pathnames on the command line. To
display the output on screen the -print option must be specified
find information about users

change executable binary file headers

filter for folding lines
The for operator may be used in looping constructs where there is repetitive
execution of a section of the shell program. For var in vall val2 val3 val4;
format floppy disks

Used to check the file system and repair damaged files. The command takes a
device name as an argument # /etc/fsck /dev/file-system-to-be-checked.
shows current number of ftp users for each class

shows current ftp user processes

print configuration dependent values

parse command options

convert shell scripts to use getopts instead of getopt getopts, getoptcvt - parse
command options
get local printer options

get a string from the standard input

output the serial number

Used to store the standard the output of a command in an enviroment variable. (')

select terminal filter

The grep (global regular expression and print) command can be used as a filter to
search for strings in files. The pattern may be either a fixed character string or a
regular expression. Grep "string" filename(s)

remember, report, or forget command locations

recreate the hash codes in a hashed spelling list

generate hash codes for a list of words

display files in hexadecimal format
print the first few lines of a file

send a message to another user

User's home directory

handle special functions of Hewlett-Packard terminals

read hardware configuration information

return a true value if a machine is a 286

emulate UNIX 80286

return a true value if a machine is a 386 or fully compatible

return a true value if a machine is a 486 or fully compatible

return a true value if a machine is a 286

international codeset conversion

print user and group IDs and names

then commands; fi - if ... then...else... fi $ if; then

The if operator allows conditional operator

used to link files. A duplicate of a file is created with another name

return windowing terminal state

display status of jobs

join two relations

reset layer of windowing terminal
print size of layer

used to stop background processes

Korn shell, a command and programming language

list files with long information including following symbolic links

indicate last logins of users and teletypes

layer multiplexer for windowing terminals

list files in columns

list dynamic dependencies

view a file one screenful at a time

specify key bindings for the less command

list files indicating directories, executables, and symbolic links

read one line

make a link to a file

get locale-specific information

define locale environment

lock a user's terminal

make entries in the system log

displays user's login name

send requests to lineprinter
print to a printer attached to the user's terminal

print information about status of (remote) lp print service

list files, recursively listing any subdirectories encountered

Lists the files in the current directory Some of the available options are: -l gives a
long listing -a displays all file{including hidden files
list files in columns, sorted across the page, rather than down the page

macro processor

i286, iAPX286, i386, i486 (also: vax, mc68k, pdp11, u370, u3b, u3b15, u3b2,
u3b5) - get truth value dependent on processor type
interactive message processing system

script used to create an atdialer

display reference manual pages

Irwin mini-cartridge tape maintenance program

manipulate the comment section of an object file

menu/form interface generator

menu tool environment variables

The mesg command controls messages received on a terminal. -n does not allow
messages to be displayed on screen -y allows messages to be displayed on screen
make a directory

make a FIFO special file

build special files

mount/unmount filesystems
The more command is used to dispay data one screenful at a time.

Mv (move) moves a file from one directory to another or simply changes filenames.
The command takes filename and pathnames as source names and a filename or
exiting directory as target names. mv [source-file] [target-file]

new version of pattern scanning and processing language

change the format of a text file

change to a new group

The news command allows a user to read news items published by the system
administrator.
Displays the contents of a file with line numbers

run a command at a different scheduling priority

add line numbers to a file

run a command immune to hangups and quits

old version of pattern scanning and processing language

display files in octal format

compress and expand files

view a file one screenful at a time

change login, or modem (dialup shell) password

The paste command joins lines from two files and displays the output. It can take a
number of filenames as command line arguments. paste file1 file2
The directories that the system searches to find commands

check pathnames
portable archive exchange

display a packed file

copy file archives in and out

display error message in standard format

Used to display data one page (screenful) at a time. The command can take a
number of filenames as arguments. Pg [option] [filename] [filename2]
Operator (1) takes the output of one commands as input of another command.

display software package and/or set information

produce an installable package

displays package parameter values

generate a prototype file

translate package format

print files on the standard output

print environment for command execution

print formatted output

warn about password expiration

Gives information about all the active processes.

The system prompt

report system information

process tape archives
overwrite specified files

(print working directory) displays the current directory.

generate a random number

copy files between systems in a Micnet network

notify user about newly received mail

put message into named file

print message automatically

notify mail sender that recipient is away

read a line from standard input

escape sequence reconglomerator and tty connection redirector

invoke a restricted text editor

execute commands on another system in a Micnet network

adjust scheduling priorities of running processes

redistribute mail using the Resent- notation

invoke a restricted Korn shell

print information about status of remote lp print service

The rm (remove) command is used to delete files from a directory. A number of
files may be deleted simultaneously. A file(s) once deleted cannot be retrieved. rm
[filename 1] [filename 2]...
remove directories
invoke a restricted shell (command interpreter)


menu-driven SCO Shell with calendar, mail, and calculator


print and set backup dates


compare files side-by-side


invoke the stream editor


set color and other attributes of the console screen


assign the function keys


set the process group of a program


generates files in the space format for pkg sets


set groups


invoke the shell command interpreter


shell layer manager


Using shift $1becomes the source string and other arguments are shifted. $2 is
shifted to $1,$3to $2 and so on.
The sleep command is used to suspend the execution of a shell script for the
specified time. This is usually in seconds.
read the microchannel configuration registers - Some of the available options are: -
Cat [-options] filename(S) - -s silent about files that - cannot be accessed - -v
enables display of non printinging characters (except tabs, new lines, form-
Sort is a utility program that can be used to sort text files in numeric or alphabetical
order Sort [filename]
find spelling errors
write a spelling list from hash codes


interpolate a smooth curve from a set of points


Used to split large file into smaller files Split-n filename Split can take a second
filename on the command line.
find the printable strings in an object file


set terminal modes


Used to switch to superuser or any other user.


calculate a checksum and count the blocks in a file


Used to copy data in buffers to files


Used to run a UNIX command from within a C program


set tabs on a terminal


The tail command may be used to view the end of a file. Tail [filename]


magnetic tape maintenance program


AT&T tape control for QIC-24/QIC-02 tape device


dump magnetic tape to output file


Used to save and restore files to tapes or other removable media. Tar
[function[modifier]] [filename(s)]
output that is being redirected to a file can also be viewed on standard output.


It compares strings and numeric values. The test command has two forms: test
command itself If test ${variable} = value then Do commands else do commands
Do commands Elif [ -d ${variable} ]


terminfo compiler


Used to display the execution time of a program or a command. Time is reported in
seconds. Time filename values
update access and modification times of a file


query the terminfo database


The tr command is used to translate characters. tr [-option] [string1 [string2]]


translate files from one format to another


return with a zero exit value


set terminal modes


Displays the terminal pathname


determine command type


set or report file-size limit


Used to specify default permissions while creating files.


unmount a filesystem


delete alias definitions


print the name of the operating system


uncompress data
administer versioned files


convert spaces to tabs


The uniq command is used to display the uniq(ue) lines in a sorted file. Sort
filename uniq
convert units


unpack a file


The operator executes the commands within a loop as long as the test condition is
false.
display summary information about system activity


map mouse input to keystrokes


UNIX-to-UNIX system copy


encode/decode a binary file for transmission via mail


query a log of uucp or uuxqt transactions


list names of systems known to uucp


accept or reject the files transmitted to the user


uucp status inquiry and job control


public UNIX-to-UNIX system file copy


UNIX-to-UNIX system command execution


return extended absence message
invoke a novice version of vi


invoke a screen-oriented display editor


set the font and video mode for a video device


invoke a read-only vi


report paging and system statistics


display information about who is on the system and what they are doing


the command halts the execution of a script until all child processes, executed as
background processes, are completed.
Used to send a message to all users logged in. # /etc/wall message


The wc command can be used to count the number of lines, words and characters in
a fine. wc [filename(s)] The available options are: - wc -[options] [filename] -1 -
w -c while operator the while operator repeatedly performs an operation until the
test condition proves false.
identify SCCS files


describe what a command is


displays information about all the users currently logged onto the system. The user
name, terminal number and the date and time that each user logged onto the system.
The syntax of the who command is who [options]
determine who is doing what


The write command allows inter-user communication. A user can send messages by
addressing the other user's terminal or login id. write user-name [terminal number]
emulate XENIX 80286


construct and execute commands
change file format from UNIX to MS-DOS


extract a file from a cpio archive and stop


print string repeatedly


display compressed files

								
To top