Sunday, January 25, 2009

Telnet

"Telnet" is a program that allows a user to log into a remote location on the Internet. This can only be done if the remote site is running the telnet software. Only sites at which you have an account or which offer public access to their services are appropriate for you to access with Telnet.

# telnet IP Address

TELNET COMMANDS

Close

close current connection

display

display operating parameters

mode

try to enter line or character mode ('mode ?' for more)

open

connect to a site

quit

exit telnet

send

transmit special characters ('send ?' for more)

set

set operating parameters ('set ?' for more)

unset

unset operating parameters ('unset ?' for more)

status

print status information

toggle

toggle operating parameters ('toggle ?' for more)

slc

change state of special characters ('slc ?' for more)

z

suspend telnet

!

invoke a subshell

environ

change environment variables ('environ ?' for more)

?

print help information

FTP

The FTP (File Transfer Protocol) utility program is commonly used for copying files to and from other computers. These computers may be at the same site or at different sites thousands of miles apart. FTP is a general protocol that works on UNIX systems as well as a variety of other (non-UNIX) systems.

Common FTP Commands

?

to request help or information about the FTP commands

ascii

to set the mode of file transfer to ASCII
(this is the default and transmits seven bits per character)

binary

to set the mode of file transfer to binary
(the binary mode transmits all eight bits per byte and thus provides less chance of a transmission error and must be used to transmit files other than ASCII files)

bye

to exit the FTP environment (same as quit)

cd

to change directory on the remote machine

close

to terminate a connection with another computer


close brubeck

closes the current FTP connection with brubeck,
but still leaves you within the FTP environment.

delete

to delete (remove) a file in the current remote directory (same as rm in UNIX)

get

to copy one file from the remote machine to the local machine


get ABC DEF

copies file ABC in the current remote directory to (or on top of) a file named DEF in your current local directory.


get ABC

copies file ABC in the current remote directory to (or on top of) a file with the same name, ABC, in your current local directory.

help

to request a list of all available FTP commands

lcd

to change directory on your local machine (same as UNIX cd)

ls

to list the names of the files in the current remote directory

mkdir

to make a new directory within the current remote directory

mget

to copy multiple files from the remote machine to the local machine;
you are prompted for a
y/n answer before transferring each file


mget *

copies all the files in the current remote directory to your current local directory, using the same filenames. Notice the use of the wild card character, *.

mput

to copy multiple files from the local machine to the remote machine;
you are prompted for a
y/n answer before transferring each file

open

to open a connection with another computer


open brubeck

opens a new FTP connection with brubeck;
you must enter a username and password for a brubeck account
(unless it is to be an anonymous connection).

put

to copy one file from the local machine to the remote machine

pwd

to find out the pathname of the current directory on the remote machine

quit

to exit the FTP environment (same as bye)

rmdir

to to remove (delete) a directory in the current remote directory




Saturday, January 24, 2009

Using Console Cable for Solaris

1. Insert the serial part of the console cable to the serial port of the computer
2. Insert the RJ45 part of the console cable to the serial management port of the equipment.
3. At your computer, type tip hardwire
# tip hardwire

Then the terminal can be used your console cable to control your equipment.

UNIX Commands

A
alias

B
bash --------------- bash shell

C
cat --------------- Read content of a file
cat abc.txt


chgrp

chmod
chmod g+w abc/ --------------- Add write rights to abc directory's group rights only
chmod -R g+w abc/ --------------- Add write rights to abc directory's group rights and files within
chmod a-x *.cpp --------------- Take away all categories execute rights that are cpp extension
chmod -R a+r abc/ --------------- Add read rights to abc directory's group rights and files within
chmod -R 777 abc/ --------------- Change abc directory and files within access rights to rwx

chown

cp --------------- duplicate another file in another location
cp abc.txt /anotherUser/Documents/abc.txt


csh --------------- C shell


D
devfsadim --------------- Detects new components in System
df --------------- See Disk Partition


E
echo

export

eject


F
format --------------- Format Utilities


FTP
# ftp destination's IP
ftp > get remote file local file --------------- take file from remote computer
(source) (destination)
ftp > put local file remote file --------------- store file to remote computer
(source) (destination)


G
grep

groupadd

groupmod


H

I
init 0
init 5
init 6

J

K

L
ls

ln -s source-file myfile --------------- Create link file

M
more -------------- Read content of a file in a page
more abc.txt


mount

mv --------------- rename


N

O

P
passwd


Q

R
rlogin --------------- Remote Login from other Computers of the same computer

rsh - Remote Shell


S

T
tar -cvf
tar -xvf abc.tar --------------- extract to abc directory

tip hardwire


U
useradd --------------- Create user


V
vi --------------- Run vi editor
W

X
xhost


Y

Z