{"id":16097,"date":"2019-01-07T14:08:48","date_gmt":"2019-01-07T13:08:48","guid":{"rendered":"https:\/\/www.digitalking.it\/?p=16097"},"modified":"2019-01-07T14:08:48","modified_gmt":"2019-01-07T13:08:48","slug":"5-cool-things-you-can-do-using-linux-shell","status":"publish","type":"post","link":"https:\/\/www.digitalking.it\/en\/2019\/01\/07\/5-cool-things-you-can-do-using-linux-shell\/","title":{"rendered":"5 cool things you can do using Linux shell"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.imgur.com\/lGTW7PB.png\" width=\"500\" height=\"500\" alt=\"Linux shell\" class=\"aligncenter size-thumbnail\" \/><\/p>\n<p>The Linux command line (also called Linux Terminal) is a very powerful tool that allows to run many tasks, also complex, in a rapid way.<br \/>\n<strong>Bash<\/strong> (acronym of Bourne Again SHell) is a GNU\/Linux text shell. It&#8217;s the evolution of \/bin\/sh standard Unix shell.<br \/>\nYou can write programs by using <strong>shell scripting<\/strong> (<strong>.sh<\/strong> extension), they are also called Bash scripts.<br \/>\n<!--more--><br \/>\nSome usage examples of the Linux console.<\/p>\n<p><strong>Upload files on Google Drive \/ Dropbox<\/strong><br \/>\nYou can use the Bash scripts hosted on <a href=\"https:\/\/github.com\/labbots\/google-drive-upload\" target=\"_blank\" rel=\"noopener\">google-drive-upload<\/a> Github repository to upload files on Google cloud service. Note: accessing Google API requires authentication credentials which can be created using developers Google Console (see a tutorial <a href=\"https:\/\/www.iperiusbackup.net\/en\/how-to-enable-google-drive-api-and-get-client-credentials\/\" target=\"_blank\" rel=\"noopener\">here<\/a>). Make sure Google Drive API is enabled for the project created in the Google Console. This API key (client id and client secret) will be used in the google-oauth2.sh script to generate OAuth 2.0 token to access Google Drive APIs.<\/p>\n<p>To upload files on Dropbox cloud service you can use the <a href=\"https:\/\/github.com\/andreafabrizi\/Dropbox-Uploader\" target=\"_blank\" rel=\"noopener\">Dropbox Uploader<\/a> Bash script (supports official Dropbox API v2, no password required or stored).<\/p>\n<p><strong>Currency Converter<\/strong><br \/>\nYou can use the Currency Bash script from <a href=\"https:\/\/github.com\/alexanderepstein\/Bash-Snippets\" target=\"_blank\" rel=\"noopener\">Bash-Snippets<\/a> Github repository for currency converter.<\/p>\n<p><strong>Weather forecast<\/strong><br \/>\nYou can use the Weather Bash script from the same above Bash-Snippets Github repo to get weather forecast. You can pass arguments like city or country to get the weather in that area, with no arguments it will grab the weather for your location as determined by your ip.<\/p>\n<p><strong>Send a tweet<\/strong><br \/>\nYou can use the <a href=\"https:\/\/github.com\/piroor\/tweet.sh\" target=\"_blank\" rel=\"noopener\">tweet.sh<\/a> Bash script to send a tweet. Note: you must generate API keys and setup tweet.client.key file.<\/p>\n<p><strong>Backup local folder to a remote server via FTP<\/strong><br \/>\nYou can use the script.sh Bash script hosted on <a href=\"https:\/\/github.com\/Pe46dro\/Bash-Backup-Script\" target=\"_blank\" rel=\"noopener\">Bash-Backup-Script<\/a> Github repository to make a backup of a local folder and upload it to a remote server using FTP. You must first setup the variables at the begin of the script.<\/p>\n<p>These are just some stuffs you can do using shell scripts, isn&#8217;t cool?<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>The Linux command line (also called Linux Terminal) is a very powerful tool that allows to run many tasks, also complex, in a rapid way.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","footnotes":""},"categories":[3474],"tags":[2580,926,3545,157,3544,1791],"class_list":["post-16097","post","type-post","status-publish","format-standard","hentry","category-linux-en","tag-command","tag-console","tag-line","tag-linux","tag-shell","tag-terminal"],"author_meta":{"display_name":"Simone","author_link":"https:\/\/www.digitalking.it\/en\/author\/admin\/"},"featured_img":null,"coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">Linux<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Linux<\/span>"]},"tags":{"linked":["<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">command<\/a>","<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">console<\/a>","<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">line<\/a>","<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">linux<\/a>","<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">shell<\/a>","<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">terminal<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">command<\/span>","<span class=\"advgb-post-tax-term\">console<\/span>","<span class=\"advgb-post-tax-term\">line<\/span>","<span class=\"advgb-post-tax-term\">linux<\/span>","<span class=\"advgb-post-tax-term\">shell<\/span>","<span class=\"advgb-post-tax-term\">terminal<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 8 years ago","modified":"Updated 8 years ago"},"absolute_dates":{"created":"Posted on January 7, 2019","modified":"Updated on January 7, 2019"},"absolute_dates_time":{"created":"Posted on January 7, 2019 2:08 pm","modified":"Updated on January 7, 2019 2:08 pm"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts\/16097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/comments?post=16097"}],"version-history":[{"count":0,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts\/16097\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/media?parent=16097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/categories?post=16097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/tags?post=16097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}