1.
We have to be very cautious while working on Production/Development servers.
2.
If we are not sure about any command then it is always preferable to go and see
manual page for that command.
#man [command]
Below
are few Dangerous commands which can harm the server :
1.
#rm - remove file; do not use -f option
2.
#chown - change owner; careful while executing this command with -r option
3.
#chmod - modify permissions of file/Dir; careful while executing this command
with -r option
4.
#mv - moving files/dirs; do not use -f option
5.
#hostname - Display hostname of server; careful while using any option to
this command
6.
#date - display date of server; "-s, --set=" can change system
date/time
7. #last |grep -i reboot - to grep when the server was rebooted through last
command; if we forget to put grep then the server will get reboot.
so
always use single or double quotes with grep
8.
#init; Change system runlevels
9.
#ntpdate - set the date and time via NTP
10.
#reboot; #shutdown - to reboot server
11.
#ifconfig - Bring down/up network interfaces
I'll keep on updating the command list if i found any new dangerous command.
Thanks...
Kiran Jadhav
**Let's Share knowledge and keep visiting here**
No comments:
Post a Comment