Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Linux

elkosmas.gr ( 21 2007)

ls

date

ls -al

cal

cd dir dir
cd home
pwd
mkdir dir dir
rm file file

uptime
w
whoami (username)
finger user user
uname -a

rm -r dir dir

cat
/proc/cpuinfo

rm -f file file

cat /proc/meminfo

rm -rf dir dir

man command command

cp file1 file2 file1 file2

df

cp -r dir1 dir2 dir1 dir2,


dir2

du

mv file1 file2 file1 file2, file2


file1 file2
ln -s file link link file
touch file file
cat > file file

free swap
whereis app app
which app app

more file file

tar cf file.tar files tar file.tar


files

head file 10 file

tar xf file.tar file.tar

tail file 10 file

tar czf file.tar.gz files tar Gzip

tail -f file file


10

tar xzf file.tar.gz tar Gzip

tar xjf file.tar.bz2 tar Bzip2

ps

gzip file file.gz

top

gzip -d file.gz file.gz file

kill pid pid pid


killall proc proc
bg
background,
background

tar cjf file.tar.bz2 tar Bzip2

ping host ping host

whois domain whois domain

fg foreground

dig domain DNS domain

fg n n foreground

dig -x host host


wget file file


chmod octal file file octal,
octal
, group,

* 4 (r)
* 2 (w)
* 1 (x)

chmod 777 rwx


chmod 755 rwx ,rx group

man chmod
SSH
ssh user@host host user
ssh -p port user@host host user
o port
ssh-copy-id user@host host
user

wget -c file


./configure
make
make install
dpkg -i pkg.deb Debian pkg.deb
rpm -Uvh pkg.rpm RPM pkg.rpm

Ctrl+C
Ctrl+Z , fg
foreground bg background
Ctrl+W
Ctrl+U
Ctrl+R

!!

grep pattern files pattern files

exit Ctrl+D

grep r pattern dir pattern dir

command | greep pattern pattern


command
locate file



.
FLOSSwire.com
licensed under a Creative Commons Attribution-Share Alike 3.0 License.

You might also like