Unix command

 

catalog

Command

Memo

calendar

gnomecal

 

address book

gnomecard

 

dia

dia

 

gnumeric

gnumeric

 

time tracking tool

gtt

 

vim

gvim

 

gedit

gedit

 

bug report tool

bug-buddy

 

color browser

gcolorsel

 

font selector

gfontsel

 

gdict

gdict

 

gnome character map:

gcharmap

 

gnome search tool

gsearchtool

 

simple calculator

gcalc

 

startup hint

gnome-hint

 

text file viewer

gless

 

gfloppy

gfloppy

 

development

glade

 

graphic

 

 

electric eyes

ee

 

gqview

gqview

 

internet

 

 

balsa

balsa

 

gaim

gaim

 

pan

pan

 

x-chat IRC client

xchat

 

Gftp

gftp

 

gnome control center

gnomecc

 

color xterm

nxterm

 

gnome terminal

gnome-terminal

 

regular xterm

xterm

 

system info

guname

 

system monitor

gtop

 

file manager

gmc

 

help system

gnome-help-browser

 

 

 

 

(1)directory and file command

 

 

bdf df

Display free space of disk

 

Df -k

Display by kilobyte

 

dtree

Display by tree

 

Du /din

Display disk usage

 

Less filename

more

 

Pg filename

more

 

Xless filename

more

 

(2) print

 

 

Lp

 

 

Lpq [-P printername]

Quiry printer queue

 

Lpr [-P printername] filename

 

 

Lprm [-P printername] jobnum

Remove print job

 

lpstat

Check printer status

 

In acroread

/usr/bin/lp –P qms1725c

Print to printer: qms1725c

(3) miscellaneous command

 

 

Env

Display or modify env variables

 

hostname

 

 

uname

Print system name

 

users

Print users

 

W

Check who is doing what

 

Which commandname

Show the location of command

 

Who

Who is on line

 

(4) process management

 

 

kill

 

 

Nice program

Run program with lower priority

 

top

Show what process is running

 

(5) file archive and compression

 

 

Compress filename

Compress filename to filename.Z

 

Uncompress filename.Z

 

 

Gunzip filename.gz

Unzip .gz file

 

Gzip filename

Compress file to file.gz

 

Tar xvf file.tar

Extract file.tar

 

Tar cvf filename.tar dirname

Combine all files under firname to filename.tar

 

Unarj filename.arj

 

 

Unzip filename.zip

 

 

Zip zipname fiiles

Create zipname (.zip)

 

(6) access dos disk

 

 

mcopy

 

 

mdel

 

 

mdir

 

 

mmd

 

 

mtype

 

 

(7) text editors

 

 

aswedit

Html editor

 

axe

X windows editor

 

ee

 

 

elvis

 

 

emacs

 

 

jed

 

 

Joe filename

Like wordstar

 

Nedit

 

 

pico

 

 

sqhm

Hotmetal htmleditor

 

textedit

 

 

Vile filename

 

 

vim

 

 

Xcoral

Multiwindow , browse c c++ classes

 

xedit

 

 

xemacs

 

 

(8) mail programs

 

 

Biff

Notice new mail arrive

 

elm

 

 

Fastmail

Quick batch mail

 

from

List senders of mail in your mailbox

 

Frm [foldername]

List senders of mail in your folder

 

mush

 

 

newmail

 

 

pine

 

 

xwafemail

 

 

(9)usenet news

 

 

knews

 

 

nn

 

 

(10)file transfer and remote access

 

 

bftp

Batch ftp

 

ftptool

 

 

Kermit -s file

User kermit protocol send file

 

Kermit -r file

 

 

minicom

 

 

ncftp

 

 

Rlogin hostname [-l userid]

Remote login

 

Rsh hostname

 

 

Rz

Receive files with zmodem

 

seyon

 

 

Sz [-r] files

Send files with zmodem

 

xc

 

 

xftp

 

 

(11) graph

 

 

coreldraw

 

 

Corelpaint

 

 

ghostview

 

 

gimp

 

 

gnuplot

 

 

gs

Postscript previewer, can convert postscript to other graphic formats

 

pageview

Preview postscript file

 

Ps2epsi file.ps [file.epsi]

Create adobe .epsi file

 

Ps2pdf

Create adobe .pdf file

 

pstoedit

Convert postscript to tgif format for edit

 

rplot

Plot 2_d data

 

sxpm

 

 

tgif

Can produce postscript format file

 

xfig

 

 

xgraph

Can produce bar graph

 

Xloadimage file

 

 

Xpaint file

Paint , can read gif

 

Xv file

View graph, include gif, bmp, tiff, postscipt

 

(12) network

 

 

Finger userid@hostname

Check info of userid

 

Host domainname

Find info about domainname

 

irc

chat

 

lpmudr

mud

 

nslookup

Quiry info about a host

 

Rup hostname

Show status of pc

 

Talk userid@hostname

 

 

tf

mud

 

Traceroute hostname

 

 

Write userid

 

 

Zlocate userid

Locate user log on which pc

 

Zwrite userid

Send message

 

Dig nb-mo-y

Check IP

 

Host nb-mo-y

Check IP

 

Nslookup nb-mo-y

Check IP

 

/sbin/ifconfig

Get ip

 

/etc/hosts

Ip

 

/etc/resolv.conf

Dns server

 

/usr/sbin/traceroute

Get gateway

 

/etc/sysconfig/network

Get gateway, hostname, domain

 

(13) programing /shell

 

 

acc

Sun c compiler

 

bash

 

 

cc

 

 

CC

 

 

cpp

Sun c++ compiler

 

csh

C language preprocessor

 

dbx

Debugger program

 

dbxtool

Debugger program

 

G++

C++ compiler

 

gcc

C compiler

 

gdb

debuger

 

gofer

A baskell implementation

 

Grep pattern files

Search a string , pattern, expression in files

 

imake

C preprocessor interface

 

ksh

 

 

lint

Verify c program

 

make

Makefile

 

nm

Print name list of object file

 

rcs

Resource/version control

 

sccs

Source code control system

 

sed

Stream editor

 

(15) text processor

 

 

a2ps

Convert ascii to postscript

 

grodvi

Convert troff to tex dvi

 

groff

Convert roff to tex dvi

 

grops

Convert troff to postscript

 

gtroff

 

 

Latex filename.tex

Process file.tex, generate file.dvi

 

lout

 

 

Mp

Format text, to postscript

 

psnum

Manipulate postscripte file to have n page on one side

 

pstops

Manipulate postscipt

 

Tex file.tex

 

 

Xdvi file.dvi

Preview .dvi

 

Xtex file.dvi

Preview .dvi

 

(16) word processor

 

 

ez

 

 

imaker

 

 

maker

framemaker

 

tps

 

 

wp

Word perfect

 

(17) spreadsheet

 

 

oleo

 

 

sc

 

 

xspread

 

 

(18) database

 

 

isql

 

 

Dbflst,dbfget,dbfadd,dbfdel,dbfpack,dbfcreat,dbfscan

 

 

computer

gull : jin xin
parrot: xiao fan
carrot: wu yun
swallow: zheng feng
nader: 
moyueming: bluejay.ece.mcmaster.ca
 130.113.10.209

 

msn

msn_linux
64.4.13.91
1863

 

 

transfer the graphics interface from a linux pc to another:

localhost:   xhost dest_hostname
localhost:   setenv DISPLAY:local_hostname:0.0

(or set DISPLAY:local_hostname:0.0)

 

 

mc
editor


env 
when run a program , with environment variable

gzip
zip file

gftp
graphic ftp

 

ece_all host IP table

ece_ip

 

 

tar -zxvf netscape-i686-pc-linux-gnu-installer.tar.gz
     OR
     gzip -dc
netscape-i686-pc-linux-gnu-installer.tar.gz | tar xvf –

1.gunzip *.tar.gz
2.tar -xvf *.tar

 

(19)RPM

 

 

1.      su to the root user

2.      Enter: rpm -ivh soto-2002-6en.i386.rpm

3.      Click on a SOT Office link from the K-menu (e.g. Work > Office > Writer)

Install a SOT software

 

Rpm –qlp xxx.rpm

Check the installation location of RPM software

 

tar zxvf soto-2002-en.tar.gz

Tar

 

bzcat soto-2002-en.tar.bz2 | tar xv

 

 

(20)my ibm notebook connect to lab LAN config

 

 

IBM notebook IP:130.113.224.72
Name server: 130.113.64.1; 130.113.128.1
Gateway: 130.113.10.5
netmask: 255.255.0.0
hostname: nb-mo-y.ece.mcmaster.ca
domain: ece.mcmaster.ca

 

 

21)remote run xwindows application

 

 

From home:Compaq linux connect to lab: bluejay
at home Compaq:
xhost bluejay.ece.mcmaster.ca
ssh grads.ece.mcmaster.ca
ssh bluejay
export DISPLAY=home IP:0
xterm&
matlab &

 

 

22) run on a redhat linux computer which is locked.

Startx -- :3

 

gzip -dc ups-3.xx.tar.gz|tar xfp -
or
tar zxfp ups-e.xx.tar.gz

 

 

Debug

Ddd

 

 


 tip


f9 breakpoint
ctrl-f10 run to cursor
shift-f5 stop debug
ctrl-shift-f5 restart debug
f4 or shift-f4 move to next previous build error
f12 goto the definition of the word
ctrl-z undo

ctrl-f2 bookmark
f2 goto next bookmark
shift-f2 go to previous bookmark
ctrl-f3 search
ctrl-f3 find next occurance of selected text,
ctrl-shift-f3 find previous occurance of selected text,
ctrl-f find
ctrl-l or ctrl-1 search
ctrl-tab cycle window

alt-f12 show source code
alt-3 show watch
alt-2 show output
alt-6 memory window

f7 build
ctrl-shift-f10
ctrl-g go to the line
ctrl-home go to home of file
ctrl-end go to end of file
ctrl-break stop build
f10 step over
shift-f9 evaluate an expression
ctrl-pageup ctrl-pagedown 
alt-3 watch window
ctrl-l delete current line
ctrl-] find a match for a parenthesis, square bracket, angle bracket
ctrl-left move to previous word, ctrl-right move to next word
alt-5 show register window
alt-7 call stack window
ctrl-f7 compile

ctrl-alt-T member list