shell - sudo with password in one command line? - Super User Set HISTIGNORE to " sudo -S " $ export HISTIGNORE='*sudo -S*' Then pass your password safely to sudo: $ echo "your_password" | sudo -S -k <command> "HISTIGNORE" means to not save this command into the history That is the history in memory or "~ bash_history" file For example, the below will safely pipe your password to the sudo command, without retaining a history of your password “-S
Turning off the cmd window beep sound - Super User The Windows command line command net stop beep will turn off the beeping, and net start beep will turn on the beeping Source It should be noted that the instruction stops the beep globally on windows and not on just for within the windows command shell Also, the service will run again when you reboot your computer @Ady's answer will suffice But if you want to just disable it per instance
How can I produce high CPU load on a Linux server? I’m currently in the process of debugging a Cacti installation and want to create CPU load to debug my CPU utilization graphs I tried to simply run cat dev zero gt; dev null, which works great
How do I join two worksheets in Excel as I would in SQL? I have two worksheets in two different Excel files They both contain a list of names, id numbers, and associated data One is a master list that includes general demographic fields, and the other
How can I know the absolute path of a running process? If I have multiple copies of the same application on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish it from the others?