Difference between revisions of "Deleting shell start-up scripts remotely without executing them"
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb self="Deleting shell start-up scripts remotely without executing them">Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb> | |||
=Deleting shell start-up scripts remotely without executing them= | =Deleting shell start-up scripts remotely without executing them= | ||
Line 11: | Line 12: | ||
Back to [[Server administration tips and tricks]] | Back to [[Server administration tips and tricks]] | ||
<yambe:breadcrumb self="Deleting shell start-up scripts remotely without executing them">Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb> |
Revision as of 07:23, 27 August 2018
<yambe:breadcrumb self="Deleting shell start-up scripts remotely without executing them">Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>
Deleting shell start-up scripts remotely without executing them
While working on VMs on clouds to which we have only ssh access, if we make mistake in some start-up file and want to disable/delete it then we can use command
ssh -tt root@<vm_hostname_or_ip> 'rm -f <filename>'
To just disable script one can use 'chmod 000 <filename>' type of command.
For example this is very useful if we have mentioned 'exit 0' in one of the scripts in '/etc/profile.d' directory.
Back to Server administration tips and tricks
<yambe:breadcrumb self="Deleting shell start-up scripts remotely without executing them">Server administration tips and tricks|Server administration tips and tricks</yambe:breadcrumb>