There are many instances when we want to quit from shell without saving any command in history. We might have run by mistake some rookie command and you dont want to disclose it to others.
kill -9 $$ will do the needful as $$ will provide the PID of the current shell
How to know the status of all the running services
There are many commands like netstat -plant,ps -aux but when you want to know all the services which are running presently into your RHEL box, service --status-all command is very handy . It shows all the running services into your box.
Subscribe to:
Post Comments (Atom)
Complete list of recommended VS Code extensions for writing and managing AWS Terraform scripts , including syntax checking, variable supp...
-
Recently I came across a situation. I was trying to delete a configuration file in Linux and got error “rm: cannot remove `path/filename’: ...
-
Open /etc/inittab file, enter: # vi /etc/inittab Search for line that read as follows: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
-
# Ansible gathering facts from remote servers. ============================= ====================================== getting facts fro...
No comments:
Post a Comment