Hi,
short post. You start a bash script and want to change the working directory to the directory where the script is stored
Use this:
cd "$(dirname "$0")"
Michael
Stuff about Linux
Hi,
short post. You start a bash script and want to change the working directory to the directory where the script is stored
Use this:
cd "$(dirname "$0")"
Michael
Hi,
to disable IPv6 on a Linux system you have to set some variables with sysctl.
Continue reading Linux: Disable IPv6
Hi,
if you are logged on as a user1 and switch to another user2 with sudo the ssh agent from user1 cannot be used because the “switched” user2 does nothing know about the ssh-agent respectively the agent socket.
Continue reading Linux: Use ssh agent forwarding while sudo to another user
Hi ,
this post describes the steps to install a lamp stack on debian linux. This is the base for many content management systems like Joomla, WordPress or Drupal.
Continue reading Linux: Install LAMP Stack on Debian 10 (Buster)
Hi,
the linux kernel has the ability to send simple network packets from a shell.
Continue reading Linux: Send Networkpackets from a shell