How can i make my custom command available to all user in linux [closed] - command

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have written a custom command under user 'krishna' on my laptop, and now i want it to be available for other all user without redefining to each user. For now, i have defined the command in /home/krishna/.bashrc As this file exist under user krishna and work only for krishna. is there any way i can defile it globally for all users?

You can define the command in the /etc/bashrc or /etc/bash.bashrc file (which one depends on your distribution). One of these should exist on your machine.
Commands you define in your local /home/[USER]/.bashrc are only available for [USER].
Commands or aliase defined in /etc/bashrc are available for all useres

Related

IBM Iseries security questions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am new to Iseries, my manager is off today. Someone asked me for a list of users that have access to certain programs.
I google and I am not even sure what to ask for in my search. Is there a command I can use that if I specify the module/program name it will return list of users who have access? and also a list of which access templates include these programs?
Display Object Authority command, DSPOBJAUT

Issue with check postgres nagios perl script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
How do I make check_postgres.pl file make use of PGPASSFILE or PGPASSWORD parameters to connect to the database?
I tried setting up the environment variables in my Linux environment, but no success.
Also, is there a way to pass an encrypted password (like a md5hash) to the --dbpass variable and connect to the database?
If https://github.com/bucardo/check_postgres/blob/master/check_postgres.pl is the check_postgres.pl you are referring to, it does check the PGPASSWORD environment variable.
The question is then how to make sure that such variable exists on the environment check_postgres.pl is executed.
The nagios docs say to put whatever you need in /etc/sysconfig/nagios.
I suspect it depends a lot on how you installed nagios and/or if you installed it with some OS vendor package manager that does things differently, though.
At any rate, the docs: https://support.nagios.com/kb/article.php?id=489

What is the difference between sqldeveloper.exe and sqldeveloperW.exe? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
My antivirus blocking sqldeveloperw.exe and allowing sqldeveper.exe. I want to know the difference between these.
One prints debug info to the console when you run it (sqldeveloperw.exe) and one doesn't (sqldeveloper.exe)
You should always run the sqldeveloper.exe in the base directory unless instructed otherwise by support/R&D to run something out of the bin directory for debugging purposes.

Permanently storing zsh aliases [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I created a new alias by typing:
~ alias gpo='git push origin'
I see my newly created alias when I type alias (which lists all the available aliases) but when I close my terminal and reopen it, they vanish.
How do I ensure that it is permanently available?
How do I keep a backup of all my aliases so I can carry them with me even if I move between computers?
You can keep it inside ~/.zshrc

Is there any reason a System V init script has to be written in bash? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Is it possible to write a System V init script (the scripts usually stored in /etc/init.d and run with service) in Perl, and have the shell recognize the #!/usr/bin/perl? Would there be any downside to doing this?
The scripts themselves can be written in any language, but support tools may need to parse the script for metadata required to decide when the initscript will start/stop. This restricts the choices to those which can make this metadata available in the form that the tools accept.
Additionally, there may be external files written in shell script which the initscript will require in order to operate properly/efficiently/effectively. Unless these files are very simple, any parser used to read them may grow very complex.