LINUX - COMANDI UTILI E NOTE VARIE:
-------------------------------------------------------------------------------
GESTIONE FILE
tar cvf file.tar file1 file2 ... (-r recursive x Linux, Unix lo fa autom)
xvf file.tar
zxvf file.tar.gz
tvf file.tar : per vedere il contenuto e l' integrita' del file
split -b 1410k file volname. : per splittare un file
(riunire con cat volname.a* > nome)
gzip file : per comprimere (-d per decomprimere)
gunzip file.gz : per decomprimere
zcat : per vedere il contenuto di file ascii compressi
zip, unzip: compatibili con msdos
uuencode file filedest > newfile : codifica file per trasmissione
uudecode filename : decodifica un file encodato
rpm -qi package : da' informazioni sul package
-ivh file.rpm : installa
-evh package : elimina
-Uvh file.rpm : aggiorna
ftp: -i Turns off interactive prompting during multiple file transfers
-v Verbose
comandi:
ascii, binary, bye, quit, close
case: remote computer file names with all letters in upper case are
written in the local directory with the letters mapped to
lower case
cd remote-directory
cdup
chmod mode file-name
delete remote-file
dir [remote-directory] [local-file]
Print a listing, optionally, placing the output in local-file
get remote-file [local-file]
hash
lcd [directory] : Change the working directory on the local machine
ls [remote-directory] [local-file]
mdelete [remote-files]
mdir remote-files local-file
mget remote-files
mkdir directory-name
mput local-files
newer file-name [local-file]
Get the file only if the modification time of the remote file
is more recent
open host [port]
prompt: If prompting is turned off, any mget or mput will transfer
all files, and any mdelete will delete all files
put local-file [remote-file]
pwd
remotestatus [file-name]
Show status of remote machine, show status of file-name
rename [from] [to]
rmdir directory-name
system: Show the type of operating system running on the remote
user user-name [password] [account]
verbose
? [command]
Per interrompere un upload: Ctrl-C, un download ABOR
-------------------------------------------------------------------------------
POSTA E MESSAGGI
cat file | elm [ -s subject ] list of aliases or addresses
echo "stringa" | elm ...
mail indirizzo < file
echo messaggio > /dev/nometerminale
cat file > /dev/nometerminale
-------------------------------------------------------------------------------
SISTEMA E PROCESSI
ps : visualizza i processi dell' utente (varie sintassi)
ps ax : every process on the system
ps aux : every process and owners
ps -eo pid,tt,user,... : every process with a user-defined format
Output:
VSZ : Virtual SiZe of the process (code+data+stack)
RSS :
STAT : stato del processo
TIME :
Codice di stato del processo:
S sleeping
R runnable (on run queue)
W has no resident pages
Z a defunct ("zombie") process
< high-priority process
T traced or stopped
D uninterruptible sleep (usually IO)
N low-priority task
L has pages locked into memory (for real-time and custom IO)
[] : comando swappato sul disco