<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BASH scripts Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/bash-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 28 Nov 2018 08:10:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Useful BASH scripts for every Linux  user</title>
		<link>https://www.osradar.com/useful-bash-scripts-for-every-linux-user/</link>
					<comments>https://www.osradar.com/useful-bash-scripts-for-every-linux-user/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 27 Nov 2018 22:34:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[BASH scripts]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7700</guid>

					<description><![CDATA[<p>Called Bash-Snippets They are a collection of useful BASH scripts for all Linux users. you can much things without browsing. just from Terminal you find many useful things. let me  tell you in this  the name of scripts and  what you can do with them . First Installing  Scripts : Install from Git  why chosing [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/useful-bash-scripts-for-every-linux-user/">Useful BASH scripts for every Linux  user</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Called Bash-Snippets They are a collection of useful BASH scripts for all Linux users. you can much things without browsing. just from Terminal you find many useful things. let me  tell you in this  the name of scripts and  what you can do with them .</p>
<h3><strong>First Installing  Scripts</strong> :</h3>
<p><strong>Install from Git </strong></p>
<p>why chosing this way ? because its working in all  Linux distributions<br />
First clone the repository:</p>
<pre class="">git clone https://github.com/alexanderepstein/Bash-Snippets</pre>
<p><strong>Then cd into the cloned directory:</strong></p>
<pre class="">cd Bash-Snippets</pre>
<p class=""><strong>Git checkout to the latest stable release</strong></p>
<pre class="">git checkout v1.22.1</pre>
<p>Run the guided install script with</p>
<p><strong>Install all the scripts</strong></p>
<pre class="">./install.sh all</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7737" src="https://www.osradar.com/wp-content/uploads/2018/11/script1.png" alt="" width="731" height="396" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script1.png 731w, https://www.osradar.com/wp-content/uploads/2018/11/script1-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/script1-696x377.png 696w" sizes="(max-width: 731px) 100vw, 731px" /></p>
<p>Done</p>
<h3><strong>What are these commands  installed?</strong></h3>
<p>Cheat – Linux Commands cheat sheet.<br />
Cloudup – A tool to backup your GitHub repositories to bitbucket.<br />
Crypt – Encrypt and decrypt files.<br />
Cryptocurrency – Converts Cryptocurrency based on realtime exchange rates of the top 10 cryptos.<br />
Currency – Currency converter.<br />
Geo – Provides the details of wan, lan, router, dns, mac, and ip.<br />
Lyrics – Grab lyrics for a given song quickly from the command line.<br />
Meme – Command line meme creator.<br />
Movies – Search and display a movie details.<br />
Newton – Performs numerical calculations all the way up to symbolic math parsing.<br />
Qrify – Turns the given string into a qr code.<br />
Short – URL Shortner<br />
Siteciphers – Check which ciphers are enabled / disabled for a given https site.<br />
Stocks – Provides certain Stock details.<br />
Taste – Recommendation engine that provides three similar items like the supplied item (The items can be books, music, artists, movies, and games etc).<br />
Todo – Command line todo manager.<br />
Transfer – Quickly transfer files from the command line.<br />
Weather – Displays weather details of your place.<br />
Youtube-Viewer – Watch YouTube from Terminal.</p>
<p><strong>Lets make some tests from  the commands:</strong></p>
<h3><strong>1-weather Command</strong></h3>
<p>This  command will display weather in the next 3 days based on your IP address. if you want to display weather for a Specific Town . please  add the name of the city  behind</p>
<pre class="">#weather  paris</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7740" src="https://www.osradar.com/wp-content/uploads/2018/11/script2.png" alt="" width="1075" height="630" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script2.png 1075w, https://www.osradar.com/wp-content/uploads/2018/11/script2-300x176.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/script2-768x450.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/script2-1024x600.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/script2-696x408.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/script2-1068x626.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/script2-717x420.png 717w" sizes="(max-width: 1075px) 100vw, 1075px" /></p>
<h3><strong>2-Crypt – to Encrypt and Decrypt files</strong></h3>
<p>Please use the options  (-e)  and (-d) to encrypt and decrypt files</p>
<p>Example of decryption /etc/passwd file</p>
<pre class="">root@osradar-mint:~# cat passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/</pre>
<pre class="">root@osradar-mint:~# crypt -e passwd encrypted_passwd</pre>
<p>Please put the  encryption password  and remember it</p>
<p><img loading="lazy" class="alignnone size-full wp-image-7741" src="https://www.osradar.com/wp-content/uploads/2018/11/script3.png" alt="" width="611" height="473" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script3.png 611w, https://www.osradar.com/wp-content/uploads/2018/11/script3-300x232.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/script3-543x420.png 543w" sizes="(max-width: 611px) 100vw, 611px" /></p>
<p>Decrypt the file</p>
<pre class="">crypt -d encrypted_passwd decrypted_password</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7742 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/script4.png" alt="" width="783" height="399" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script4.png 783w, https://www.osradar.com/wp-content/uploads/2018/11/script4-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/script4-768x391.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/script4-696x355.png 696w" sizes="(max-width: 783px) 100vw, 783px" /></p>
<h3>3-<strong>Currency – the Currency Converter</strong></h3>
<p>Just enter the base currency code and the currency to exchange to, the results are based  on Realtime exchange rates.</p>
<pre class=""><strong>Supported Currencies:</strong>
_______________________
| AUD | BGN | BRL | CAD |
| CHF | CNY | CZK | DKK |
| EUR | GBP | HKD | HRK |
| HUF | IDR | ILS | INR |
| JPY | KRW | MXN | MYR |
| NOK | NZD | PHP | PLN |
| RON | RUB | SEK | SGD |
| THB | TRY | USD | ZAR |
_______________________</pre>
<p>Lets try from EUR to Singapore Dollar</p>
<pre class="">root@osradar-mint:~# currency
What is the base currency: EUR
What currency to exchange to: SGD
What is the amount being exchanged: 100
=========================
| EUR to SGD
| Rate: 1.5582
| EUR: 100
| SGD: 155.8200
=========================
root@osradar-mint:~#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7745" src="https://www.osradar.com/wp-content/uploads/2018/11/script5.png" alt="" width="562" height="167" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script5.png 562w, https://www.osradar.com/wp-content/uploads/2018/11/script5-300x89.png 300w" sizes="(max-width: 562px) 100vw, 562px" /></p>
<p><strong>4-Movies – details over Movie </strong></p>
<p>Get information about movies. like Year release. the  actors , the director</p>
<p><img loading="lazy" class="alignnone size-full wp-image-7747" src="https://www.osradar.com/wp-content/uploads/2018/11/script6.png" alt="" width="1095" height="560" srcset="https://www.osradar.com/wp-content/uploads/2018/11/script6.png 1095w, https://www.osradar.com/wp-content/uploads/2018/11/script6-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/script6-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/script6-1024x524.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/script6-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/script6-1068x546.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/script6-821x420.png 821w" sizes="(max-width: 1095px) 100vw, 1095px" /></p>
<h3><strong>4-Short  : Shorten urls and unmask shortened urls</strong></h3>
<p>very nice tool</p>
<p><img loading="lazy" class="alignnone size-full wp-image-7748" src="https://www.osradar.com/wp-content/uploads/2018/11/X1-1.png" alt="" width="576" height="217" srcset="https://www.osradar.com/wp-content/uploads/2018/11/X1-1.png 576w, https://www.osradar.com/wp-content/uploads/2018/11/X1-1-300x113.png 300w" sizes="(max-width: 576px) 100vw, 576px" /></p>
<h3><strong>5- Geo – Find details  over your network</strong></h3>
<p>Find  details like s wan, lan, router, dns, mac, and ip geolocation.</p>
<pre class="">Usage: geo [flag]
-w Returns WAN IP
-l Returns LAN IP(s)
-r Returns Router IP
-d Returns DNS Nameserver
-m Returns MAC address for interface. Ex. eth0
-g Returns Current IP Geodata</pre>
<p>To know everything about your netwrok:</p>
<pre class="">root@osradar-mint:~# geo -wlrdgm enp0s3  #enp0s3 is  device Ethernet name) 
77.170.242.---
192.168.2.19
192.168.2.254
127.0.0.53
Netherlands
NH
Amsterdam
1103
KPN
77.170.242.---
08:00:27:5c:74:04
root@osradar-mint:~#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7751" src="https://www.osradar.com/wp-content/uploads/2018/11/X2-1.png" alt="" width="760" height="381" srcset="https://www.osradar.com/wp-content/uploads/2018/11/X2-1.png 760w, https://www.osradar.com/wp-content/uploads/2018/11/X2-1-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/X2-1-696x349.png 696w" sizes="(max-width: 760px) 100vw, 760px" /></p>
<h3><strong>6- Youtube-Viewer – Watch YouTubefrom terminal</strong></h3>
<p>Ytview command</p>
<p>Description: Search and play youtube videos right from the terminal.<br />
Usage: ytview [flag] [string] or ytview [videoToSearch]<br />
-s Searches youtube<br />
-c Shows the latest videos of a channel<br />
-u Update Bash-Snippet Tools<br />
-h Show the help<br />
-v Get the tool version<br />
Examples:<br />
ytview -s Family Guy Chicken Fight<br />
ytview -c Numberphile</p>
<pre class="">root@osradar-mint:~# ytview The Pursuit of Happyness</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7753" src="https://www.osradar.com/wp-content/uploads/2018/11/X3-1.png" alt="" width="1287" height="473" srcset="https://www.osradar.com/wp-content/uploads/2018/11/X3-1.png 1287w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-300x110.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-768x282.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-1024x376.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-696x256.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-1068x393.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/X3-1-1143x420.png 1143w" sizes="(max-width: 1287px) 100vw, 1287px" /></p>
<h3><strong>7-Newton. The math helper </strong></h3>
<p>From the matrix bellow you can what kind of function you can solve with this script.</p>
<p>&nbsp;</p>
<pre class=""> ===================================================
|Operations    Sample Expression Sample Result|
|---------------------------------------------------|
|Simplify           [[2x^2]+7]*[4x^2] 8 x^4 + 28 x^2 |
|Factor             x^2 + 2x x       (x + 2) |
|Derive             x^2+2x          2 x + 2 |
|Integrate          x^2+2x 1/3 x^3 + x^2 +C|
|Roots/Zeroes       x^2+2x 2, 0 |
|Tangent            2~x^3 12 x + -16 | (Finding tangent line when x=2 for expression x^3)
|Area               2:4~x^3 60 | (Finding area under curve from 2 to 4 for expression x^3)
|Cos                pi -1 |
|Sin                pi 0 |
|Tan                pi/4 1 |
|ArcCos             1 0 |
|ArcSin             0 0 |
|ArcTan             pi arcsin(pi) |
|Abs                -2 2 |
|Log                2~8 3 | (Log base 2 of eight)
==================================================</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7755" src="https://www.osradar.com/wp-content/uploads/2018/11/S1.png" alt="" width="655" height="466" srcset="https://www.osradar.com/wp-content/uploads/2018/11/S1.png 655w, https://www.osradar.com/wp-content/uploads/2018/11/S1-300x213.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/S1-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2018/11/S1-590x420.png 590w" sizes="(max-width: 655px) 100vw, 655px" /></p>
<h3><strong>8-Stocks &#8211; the stock price details</strong></h3>
<p>Show  information about  Cisco Company</p>
<pre class="">root@osradar-mint:~# stocks cisco
CSCO stock info
=============================================
| Exchange Name: Nasdaq Global Select
| Latest Price: 46.12
| Open (Current Trading Day): 45.45
| High (Week52): 49.47
| Low (Week52): 36.5
| Close (Previous Trading Day): 46.12
| Price Change: 0.55
| Price Change Percentage: 0.01207
| Volume (Current Trading Day): 21453876
| Last Updated: 1543352400286
=============================================
root@osradar-mint:~#</pre>
<p>&nbsp;</p>
<h3 class=""><strong>9-lyrics Fetch lyrics for a certain song.</strong></h3>
<p>Its also good tool</p>
<pre class="">lyrics -a singer -s song</pre>
<p>if you want to dump the words to an file</p>
<pre class="">lyrics -a singer  -s song  -f ~/runItLyrics.txt</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7758" src="https://www.osradar.com/wp-content/uploads/2018/11/111.png" alt="" width="608" height="399" srcset="https://www.osradar.com/wp-content/uploads/2018/11/111.png 608w, https://www.osradar.com/wp-content/uploads/2018/11/111-300x197.png 300w" sizes="(max-width: 608px) 100vw, 608px" /></p>
<p>Its time that you have to try this beautiful script</p>
<p>To see  and try all the tools just insert bash-snippets  command</p>
<pre class="">#bash-snippets</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-7759" src="https://www.osradar.com/wp-content/uploads/2018/11/222.png" alt="" width="666" height="401" srcset="https://www.osradar.com/wp-content/uploads/2018/11/222.png 666w, https://www.osradar.com/wp-content/uploads/2018/11/222-300x181.png 300w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<p>Enjoy</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/useful-bash-scripts-for-every-linux-user/">Useful BASH scripts for every Linux  user</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/useful-bash-scripts-for-every-linux-user/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
