You are on page 1of 4

-------------------------------------------------------------------------------

Sapt1. DIVA Administration (IVSS configuration)

log files: /var/opt/FERMA/traces


changes in: etc/opt/FERMA/app_param.cfg
Checksys monitor:
alarm msg. saved in: $HOME/logs/checksys.log
Traces: var/opt/FERMA/logs
LSAV organization:
Config files: /etc/opt/FERMA
Script files: /opt/FERMA/bin

UNIX:

sdif -s Compara fisiere


rlogin remote login, access a UNIX system from another computer (Telnet)
telnet Remote Access Using Telnet
ssh user@remoteserver
Ctrl + d log out or exit a Terminal window
id find out the UID number, username, GID number, and group name for an account
who am I
who displays information about all users currently logged onto the local system
finger(1) user information lookup program
finger(1) -s Display the user's login name, real name, terminal name and write status, idle
time, login time, and either office location and office phone number, or the
remote host
init 0 Shut down the system
passwd change password
passwd + usrname change the password for that account
dtterm& open an additional Terminal window
login [ name ] login is used when signing onto a system
login -p
login -h hostname
login -f name

-nispasswd(1) [-ghs] [-D domainname] The nispasswd utility changes a password, gecos (finger) field (-g option),
[username] home directory (-h option), or login shell (-s option) associated with the
-nispasswd -a username (invoker by default) in the NIS+ passwd table
-nispasswd [-D domainname] [-d
[username]]
-nispasswd [-l] [-f] [-n min] [-x max] [-
w warn]
[-D domainname] username

apropos identically to man -k (keyword search)


whatis helpful if the user can remember the command name but forgets what it does
hostname displays the name of the student's workstation or host
uname -a displays expanded system information, including the name of the student's
workstation, the OS version, and more
arp <hostname> displays the host name, IP address, and Ethernet address
domainname displays the domain that the workstation is in, such as Corp.East.Sun.com
prtconf | grep Memory displays the amount of system memory
lp Prints a file
sort Sorts files
cd ~username change directories to another user's home directory
ls chap(2|4) lists all files that begin with "chap" and have either a 2 or a 4 as the next
character
*/ ? Replace char/ replace one char
[] match a set or range of characters for a single character position in the file or
directory name
; enter multiple commands on a single command line before pressing Enter
file filename(s) File type
Strings [filename][absolute path] print readable characters in an executable or binary file/ determine what program
was used to create the file
cat The -n option displays the last n lines of the file. The +n option allows the user to
more start displaying lines from a specific point in a file. It starts at the nth line in the
less file and displays all lines from there to the end.
tail[ -+n ] filename(s)
head [ -n ] filename(s)
wc [options] filename(s)
diff [option] file1 file2 compares two text files, then finds and displays the differences between them
cmp quickly determine whether two files differ without displaying the differences
touch create new, empty files
mkdir
rm
mv source target
rmdir
echo
cp source destination
ln file1 directory/newfilename
command < file uses the file as input to the command
command 2> file
df command shows capacity and availability from a file system level
du displays disk space used by files and subdirectories and is frequently used by a
user
ex: du -sh ./*|egrep 'G|M' ex: disk usage in Gb/Mb, per folder, in current dir.
find path expression
grep [option] string filename FRMA_pkginfo | grep -i inactive = Inactive pkgs
egrep
fgrep
sed
sort [options] [input_filename]
…...........9
chmod mode filename
chown new_owner filename transfers ownership from one user to another
chgrp new_group filename
su [-] username
…......12......13
ps [-options ] [|grep nume_proces”] processes
ps -u username
jobs
mpstat
kill [-signal] process-id or %[numar
de ordine proces]
killall
pkill
& Run proc in background
nohup enable a background job to complete even after logging off
Ctrl+z or stop %job
bg %[numar de ordine proces]
fg %[numar de ordine proces]
vmstat Virtual mem statistics
sar -u System Activity Reporter – to see CPU load
sar -w for swapping
sar -b for buffer activity
sar –d for disk usage
sar -r -f /var/adm/sa/saXY
top display CPU utilization
CKS_Top -o size
iostat Disk/ mirror status
metadb -i
metastat local hard disk check
mount
df
sccli external storage sub-system check
-at [time spec] [script file name] schedule programs to run one time only at a specified time
-atq
-atrm [at job#] command to view the at job queue
-crontab -e/l/r remove a scheduled job
schedule repeated operations
whereis [name command/ file] find the directory location for any command or other file on a Solaris or Linux
computer
alias aliasname=value create an alias in both the Korn and Bash shells
unalias aliasname
history [options]
VARIABLE=value ;export create an environment variable
VARIABLE

or
export VARIABLE=value

gzip filename Compress files


gunzip filename uncompress files
gzcat filename lets you look at a gzipped file without actually having to gunzip it (same as
gunzip -c)
lsof +aL1 / ????? Hanged processes on root
ipcs -a Check the status of system messages queue
netstat –in Check the network statistics
netstat -rn Routing Table: IPv4
ping LAN
ifconfig
info Cluster
scstat
harms –i Check cluster from active/standby node (sw monitor sn RMS)
-s Start monitoring sw
-sa Select one of the two nodes to be the “Active” one and start the application from
that node
- ic check the interconnect LAN connections
onstat – IDS
onstat –d
onstat -l

You might also like