SSH Linux
pwd :
Code:
pwd
ls :
Code:
ls
Code:
ls -al
Code:
ls alR
.html
Code:
ls *.html
cd /foldername
Code:
cd /home
cd ..
:
Code:
cd /home/best-sec
best-sec home
Code:
cd ..
Code:
clear
:
: Read Write execute : Owner Group everyone .
chmod Owner Group Everyone .. :
PHP:
0 = --- No permission
1 = --X Execute only
2 = -W- Write only
3 = -WX Write and execute
4 = R-- Read only
5 = R-X Read and execute
6 = RW- Read and write
7 = RWX Read, write and execute
(0) Group Telnet FTP
:
PHP:
chmod 655 [filename] :
chmod 604 [filename] : Html
chmod 705 [directory name] :
chmod 755 [filename] :
chmod 606 [filename] :
chmod 703 [directory name] : Public FTP
.zip File.zip :
Code:
unzip file.zip
.tar file.tar :
Code:
tar -xvf file.tar
.gz file.gz :
Code:
gzip -d file.gz
.tar.gz file.tar.gz :
Code:
gzip -d file.tar.gz
:
Code:
tar -xvf file.tar
pico : Index .
Code:
pico /home/best-sec/public_html/index.html
.
Code:
rm
rm filename.txt : Confirmation
rm -f filename.txt : .
.
Code:
last
.
Code:
w
.
Code:
netstat
IP Port .
Code:
netstat -an
live system processes Uptime
Code:
top
top Shift + M
CPU top Shift + P
Disk usage.
Code:
du
.
Code:
du -sh
cp :
Code:
cp filename filename.backup
filename.backup
Code:
exit
...
:
Code:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n