Sometimes it happens that you can’t use your services cause they deal with blocked ports. For exampel you use mysql on the commandline and it is by some reason denied. A proxy can help you. Tsocks helps you to use a proxy. Tsocks is a library for intercepting outgoing network connections and redirecting them through a SOCKS server.
Redirect a request for a specific file to a folder (http://www.test/upload/file.pdf -> http://www.test.de/downloads/)
The flag R stands for redirect, L stands for Last (the rule will be executed immediately, without chaining another rule)
In reality you have quite often perform a certain command on several files. First i detect all files I’m looking for and store them in a filelist.
Second i run through this file, line by line and perform my command on all filename I’ve received one step before.
You need to replace in several files. You can do it with sed. Be aware about masking special chars. In the example below the string „my\folder“ is replaced with „your\folder“. Replacing with sed works like this: sed -i s#old#new#g The delimiter (in this case the #) can be changed. The first sign after the s acts as delimiter.
A handy tool for dealing with different bash sessions is tmux. It’s comparable with gnu screen but by far more advanced. You can get it with:
sudo apt-get install tmux
Launch it by typing:
Dealing with sessions brings great power. You can set up your multi-windows panes on a remote machine, in a seperate session. Now you can detach from this session and log out. When you later ssh back into this machine you can reattach this session and all your views are restored.
Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.