Category Archives: Linux

Stuff about Linux

Youtube: Save the audio stream of a youtube video as mp3

Hi,

there is a python module if you want to save an audio stream of a youtube. youtube-dl is the choice for such tasks.
Continue reading Youtube: Save the audio stream of a youtube video as mp3

Advertisment to support michlstechblog.info

Linux: ip command line examples

Hi,

the old style ifconfig, route and netstat commands does not support all network, especially IPv6, features shipped with modern linux distributions.

Replacement are ip (ifconfig, route) and ss (netstat). Here are some examples.
Continue reading Linux: ip command line examples

Linux: Change working directory to script directory in bash

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

Linux: Disable IPv6

Hi,

to disable IPv6 on a Linux system you have to set some variables with sysctl.
Continue reading Linux: Disable IPv6

Linux: Use ssh agent forwarding while sudo to another user

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