Wednesday, March 6, 2024

Linux

systemctl start service_name

systemctl stop service_name

systemctl enable service_name

systemctl disable service_name

systemctl status service_name


sudo chkconfig service_name on

sudo chkconfig service_name off

sudo chkconfig service_name status


bash --noprofile --norc starts a completely clean, bare-bones Bash shell without running any of your normal startup scripts.


What it does

When you start Bash normally, it loads several configuration files, such as:

  • /etc/profile → system-wide environment variables

  • ~/.bash_profile, ~/.bash_login, ~/.profile → user login scripts

  • ~/.bashrc → aliases, functions, prompt settings, etc.

These can set your PATH, prompt, aliases, etc.
Sometimes you don’t want that — especially when testing or running untrusted scripts.

The flags:

  • --noprofile → skip /etc/profile and any personal profile files.

  • --norc → skip reading ~/.bashrc.


No comments:

Post a Comment

opatchauto

# Log in as root su - root # Execute opatchauto against the unzipped patch directory /u01/app/19.0.0/ grid /OPatch/opatchauto apply /tmp/pat...