Docsity
Docsity

Prepara i tuoi esami
Prepara i tuoi esami

Studia grazie alle numerose risorse presenti su Docsity


Ottieni i punti per scaricare
Ottieni i punti per scaricare

Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium


Guide e consigli
Guide e consigli


Schede Riferimenti UNIX: Comandi e Funzionalità Speciali, Sintesi del corso di Informatica

Una panoramica dei comandi e delle funzionalità speciali utilizzate in un ambiente unix, compresi quelli riguardanti la gestione del terminale, la gestione dei file e delle directory, la gestione delle processi, la gestione della stampa e la comunicazione remota. Il documento include anche informazioni su come utilizzare alcuni strumenti tipici di unix come man, whatis, which, whereis, alias, passwd, ls, cd, pwd, mkdir, rmdir, cp, mv, rm, file, cat, more, less, wc, gzip, gunzip, grep, lpr, lpq, lprm, ssh, scp, pine, <tab>, ~, ., .., ?, *, !str, <pg-up>, <drag left mouse button>, <click left>, <click right>, <click middle>, xterm, emacs, gv, xpdf, xv, netscape e xcalc.

Tipologia: Sintesi del corso

2019/2020

Caricato il 29/05/2020

john-smith-123
john-smith-123 🇮🇹

5 documenti

1 / 1

Toggle sidebar

Questa pagina non è visibile nell’anteprima

Non perderti parti importanti!

bg1
UNIX REFERENCE SHEET
TERMINAL COMMANDS
HELP
man get information on a command
whatis display brief description of command
which find command in user’s path
whereis search for command
MISCELLANEOUS
alias make nickname for a command
passwd set or change login password
clear clear screen
logout exit login shell
exit exit non-login shell
ps report on active processes
top display processes
FILE MANAGEMENT
ls list files and directories
cd dir change directory to dir
pwd dir print “working” (i.e., current) directory
mkdir dir create directory dir
rmdir dir remove (empty) directory dir
cp file dir copy file(s)
mv file dir move file(s)
rm file dir remove file(s)
file file determine file-type
cat file concatenate or display file
more file display file one screen at a time
less file search-able version of more
head file display first lines of file
tail file display last lines of file
wc file count lines, words, characters in file
gzip file compress file
gunzip file uncompress file
grep str file search file for lines containing str
PRINTING
lpr file print file
lpq check status of print jobs
lprm num remove print job number num
REMOTE ACCESS AND COMMUNICATION
ssh secure login to remote machine
scp secure copy file(s) to/from remote machine
pine email reader
TERMINAL: SPECIAL CHARACTERS & STRINGS
<tab> ’tab-completion’
~home directory
.current directory
.. up one directory
?match any single character
*match any characters
!str redo command beginning with str
<Pg-up> scroll up through commands
<Drag left mouse button> select region (also Emacs)
<Click left, click right> select region (also Emacs)
<Click middle> paste region (also Emacs)
LINUX PROGRAMS
xterm command-line terminal
emacs text editor
gv (or ghostview) viewer for postscript files
xpdf (or acroread) viewer for PDF files
xv viewer for images files
netscape web browser
xcalc scientific calculator
EMACS COMMANDS
<Ctrl> x 2 split window into two buffers
<Ctrl> x 1 keep only current buffer
<Ctrl> x <Ctrl> f open file into buffer
<Ctrl> x <Ctrl> s save
<Ctrl> k delete current line
<Ctrl> w delete selected region
<Ctrl> y insert line or region
<Ctrl> s search for string
<Ctrl> r search backward for string
<Alt> x replace-string search and replace string
<Ctrl> g abort mini-buffer command
<Ctrl> x ( begin macro definition
<Ctrl> x ) end macro
<Ctrl> x e execute macro
<Esc> num execute next action num times
<Ctrl> <Shift> - undo last action

Anteprima parziale del testo

Scarica Schede Riferimenti UNIX: Comandi e Funzionalità Speciali e più Sintesi del corso in PDF di Informatica solo su Docsity!

UNIX REFERENCE SHEET

TERMINAL COMMANDS

HELP man get information on a command whatis which display brief description of commandfind command in user’s path whereis search for command MISCELLANEOUS alias make nickname for a command passwd clear set or change login passwordclear screen logout exit exit login shellexit non-login shell ps top report on active processesdisplay processes

FILE MANAGEMENT ls list files and directories cd pwd dir dir change directory toprint “working” (i.e., current) directory dir mkdir rmdir dirdir create directoryremove (empty) directory dir dir cp mv file dir file dir copy file(s)move file(s) rm file file dirfile remove file(s)determine file-type cat more file file concatenate or displaydisplay file one screen at a time file lesshead file file search-able version ofdisplay first lines of file more tail wc filefile display last lines ofcount lines, words, characters in file file gzip gunzip file file compressuncompress file file grep str file search file for lines containing str PRINTING lpr file print file lpq lprm (^) num check status of print jobsremove print job number num

REMOTE ACCESS AND COMMUNICATION ssh secure login to remote machine scp pine secure copy file(s) to/from remote machineemail reader

TERMINAL: SPECIAL CHARACTERS & STRINGS

~ ’tab-completion’home directory

. .. current directoryup one directory ? * match any single charactermatch any characters ! <Pg-up>str redo command beginning withscroll up through commands str <Click left, click right> select region (also Emacs)select region (also Emacs) paste region (also Emacs)

LINUX PROGRAMS

xterm emacs command-line terminaltext editor gv xpdf (or (or ghostview acroread) (^) ) viewer for postscript filesviewer for PDF files xv netscape viewer for images filesweb browser xcalc scientific calculator

EMACS COMMANDS

x 2 x 1 split window into two bufferskeep only current buffer x f x s open file into buffersave k w delete current linedelete selected region y s insert line or regionsearch for string r x replace-string search backward for stringsearch and replace string g x ( abort mini-buffer commandbegin macro definition x ) x e end macroexecute macro - num execute next actionundo last action num times