Jump to content
visan15

Comenzi root

Recommended Posts

w , uptime = arata de cate zile este serverul sus

id, whoami = arata dreptul pe care il avem pe root: apache sau root

ls, dir = arata continutul unui folder

rm -rf = aterge un folder sau fisier

Impachetez un fisier -> tar chf fisier.tar fisier

-> tar zcd fisier.tar director

Vad ip la un server -> ping -c1 yahoo.com

/sbin/ipchains -A input --destination-port -p tcp -j REJECT

route add -host ip-ul reject -> Inchid un port anume

cat /proc/cpuinfo -> Informatii despre sistem

rpm -Uhv arhiva -> despachetez arhiva rpm

gzip -9 ex.tar -> modifik extensia tar in tar.gz

/usr/sbin/useradd -o -u 0 http -> fak shell

cat /etc/issue -> vad versiunea de linux

gcc program.c -o program -> compilez un program

df -h -> vad cat re hardu

/etc/rc.d/init.d -> Afisate Pidurile

cat /etc/hosts -> Vad Vhosturile

netstat -aut -> VAd cine mai ii pe roata

cat /etc/*release -> Vad versiunea de linux

cat /etc/hosts -> Vad hosturile

alias ls='dir --color=tty'-> Bag ls

/usr/sbin/userdel user -> Sterg user

find / -name ".. " -print -xdev ->caut foldere ascunse

find / -name ".*" -print -xdev | cat -v ->caut foldere ascunse

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...