Documente Academic
Documente Profesional
Documente Cultură
apropos whatis
Show commands
pertinent to string. See
also threadsafe
man -t ascii | ps2pdf - > ascii.pdf
make a pdf of a manual
page
which command
Show full path name of
command
time command
See how long a
command takes
time cat
Start stopwatch. Ctrl-d
to stop. See also sw
dir navigation
cd -
Go to previous
directory
cd
Go to !"#$
directory
%cd dir && command'
Go to dir( e)ecute
command and return to
current dir
pushd .
*ut current dir on stack
so you can popd +ack
to it
file searching
alias l,-ls -l --color,auto- .uick dir listing
ls -lrt
/ist files +y date. See
also newest and find_mm_
yyyy
ls 0usr0+in | pr -12 -3C"/4#5S
*rint in 2 columns to
width of terminal
find -name -6.7ch8- | )args grep -$ -e)pr-
Search -e)pr- in this dir
and +elow. See
also findrepo
find -type f -print9 | )args -r9 grep -: -e)ample-
Search all regular files
for -e)ample- in this dir
and +elow
find -ma)depth ; -type f | )args grep -: -e)ample-
Search all regular files
for -e)ample- in this dir
find -ma)depth ; -type d | while read dir< do echo dir< echo
cmd2< done
*rocess each item with
multiple commands %in
while loop'
find -type f = -perm ->>>
:ind files not reada+le
+y all %useful for we+
site'
find -type d = -perm -;;; :ind dirs not accessi+le
+y all %useful for we+
site'
locate -r -file7?086@.t)t-
Search cached inde) for
names. 1his re is like
glo+ 6file6.t)t
look reference
Auickly search %sorted'
dictionary for prefi)
grep --color reference 0usr0share0dict0words
!ighlight occurances of
regular e)pression in
dictionary
archives and compression
gpg -c file $ncrypt file
gpg file.gpg Becrypt file
tar -c dir0 | +Cip2 > dir.tar.+C2
#ake compressed
archive of dir0
+Cip2 -dc dir.tar.+C2 | tar -)
$)tract archive %use
gCip instead of +Cip2
for tar.gC files'
tar -c dir0 | gCip | gpg -c | ssh userDremote -dd of,dir.tar.gC.gpg-
#ake encrypted
archive of dir0 on
remote machine
find dir0 -name -6.t)t- | tar -c --files-from,- | +Cip2 >
dirEt)t.tar.+C2
#ake archive of su+set
of dir0 and +elow
find dir0 -name -6.t)t- | )args cp -a --target-directory,dirEt)t0
--parents
#ake copy of su+set of
dir0 and +elow
% tar -c 0dir0to0copy ' | % cd 0where0to0 && tar -) -p '
Copy %with
permissions' copy0 dir
to 0where0to0 dir
% cd 0dir0to0copy && tar -c . ' | % cd 0where0to0 && tar -) -p '
Copy %with
permissions' contents
of copy0 dir to
0where0to0
% tar -c 0dir0to0copy ' | ssh -C userDremote -cd 0where0to0 &&
tar -) -p-
Copy %with
permissions' copy0 dir
to remoteF0where0to0 dir
dd +s,;# if,0dev0sda | gCip | ssh userDremote -dd of,sda.gC-
Gackup harddisk to
remote machine
rsync %5etwork efficient file copierF 4se the --dry-run option for testing'
rsync -* rsyncF00rsync.server.com0path0to0file file
"nly get diffs. Bo
multiple times for
trou+lesome downloads
rsync --+wlimit,;999 fromfile tofile
/ocally copy with rate
limit. Ht-s like nice for
H0"
rsync -aC -e ssh --delete I0pu+licEhtml0 #irror we+ site %using
remote.comF-I0pu+licEhtml-
compression and
encryption'
rsync -auC -e ssh remoteF0dir0 . && rsync -auC -e
ssh . remoteF0dir0
SynchroniCe current
directory with remote
one
ssh %Secure S!ell'
ssh 4S$JD!"S1 command
Jun command on
!"S1 as 4S$J
%default
command,shell'
ssh -f -K 4S$JD!"S15L#$ )eyes
Jun G4H command on
!"S15L#$ as
4S$J
scp -p -r 4S$JD!"S1F file dir0
Copy with permissions
to 4S$J-s home
directory on !"S1
scp -c arcfour 4S$JD/L5!"S1F +igfile
4se faster crypto for
local /L5. 1his might
saturate Gig$
ssh -g -/ M9M9FlocalhostFM9 rootD!"S1
:orward connections to
!"S15L#$FM9M9
out to !"S1FM9
ssh -J ;>N>FimapF;>N rootD!"S1
:orward connections
from !"S1F;>N> in to
imapF;>N
ssh-copy-id 4S$JD!"S1
Hnstall pu+lic key for
4S$JD!"S1 for
password-less log in
wget %multi purpose download tool'
readline
/ine editor used +y
+ash( python( +c(
gnuplot( ...
screen
\irtual terminals with
detach capa+ility( ...
mc
*owerful file manager
that can +rowse rpm(
tar( ftp( ssh( ...
(n$plot
Hnteractive0scripta+le
graphing
links 3e+ +rowser
)dg-open .