Linux Programming
Bash is a very powerfull language in automating linux environments, here are some usefull commands listed which could help you a great deal when creating bash scripts:
sed
is a powerfull tool to search and replace on the fly, can also be used to change stuff in multiple files (for digits it is [[:digit:]] )
echo "hello you are not good at this." | sed -r 's/not/very/g'
awk
# find layout and print the layout value for example value 34 would print: 34
awk '/layout/ {print $2}'
- Mass Renaming Non UTF Characters from filenamesTuesday 15 January 2019
- Copying files fast between two machinesSunday 21 May 2017
- Compress and uncompressSaturday 20 May 2017
- How to generate RSA keys on linuxSaturday 26 November 2016
- Add a user to groupsAdd a user to a group, give user sudo privilegesSaturday 26 November 2016
- How to Create a Reverse SSH Tunnel?Brief introduction on how to make a reverse SSH Tunnel with putty or command line. Saturday 1 October 2016
- CurlHow to use curlWednesday 9 March 2016
- Compressing and Uncompressingtar and gunzip. how to use themWednesday 13 January 2016
- Network Issues and how to troubleshoot themGet the packet content with tcpdump tcpdump -nnvvXSs 1514 Wednesday 13 January 2016
- Grep ~ find within files different combinationsfind what you are looking for within files and in combination with alot of other nifty commands you can really make it easy to manage alot.Wednesday 13 January 2016
- Create a job that starts every rebootFriday 13 November 2015
- watch ~ how to continuously run a specific commandwatch can help out a lot when trying to trouble shoot with a command which you have to run multiple timesThursday 11 June 2015
- find and remove blacklisted elements with cat grepgood ways to use catThursday 11 June 2015
- Using find in interesting waysFind is a very useful tool when working within linux, you can use in many interesting ways with other linux tools and make magic happen.Thursday 11 June 2015
- How to create a cronjobHow to Create a cronjob and run it every night.Friday 5 June 2015
- Setup of the Non-HID 7 inch Touch DisplaySetting up the non-HID Touch DisplayTuesday 27 January 2015
- Recompile Raspberry Pi KernelHow to Recompile the Raspberry Pi Kernel to add features or remove them.Tuesday 27 January 2015
- Vim Text Editor - Find and remove lineVim is a powerful text editor within the linux environment. here is a short example on how to find and or remove a part of a search string from a file. Monday 12 January 2015