<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Avikamjha on Medium]]></title>
        <description><![CDATA[Stories by Avikamjha on Medium]]></description>
        <link>https://medium.com/@avikamjha?source=rss-cbb1a6f0e994------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*R7CYMva35RcvfTfh</url>
            <title>Stories by Avikamjha on Medium</title>
            <link>https://medium.com/@avikamjha?source=rss-cbb1a6f0e994------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:06:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avikamjha/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Cloud Resume Challenge]]></title>
            <link>https://medium.com/@avikamjha/the-cloud-resume-challenge-fb3952019b0?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb3952019b0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-resume-challenge]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 19:18:53 GMT</pubDate>
            <atom:updated>2021-09-27T06:45:43.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*zw4_IYTulAmYi78_.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*JZlUW7vHB8CZeWuD" /></figure><p>The sixteen steps of the original Cloud Resume Challenge</p><ol><li><strong>Certification</strong></li></ol><p>Your resume needs to have the AWS Cloud Practitioner certification on it. This is an introductory certification that orients you on the industry-leading AWS cloud — if you have a more advanced AWS cert, or a cert on a different cloud, that’s fine but not expected. No cheating: include the validation code on the resume. You can sit the CCP exam online for $100 USD.</p><p><strong>2. HTML</strong></p><p>Your resume needs to be written in HTML. Not a Word doc, not a PDF.</p><p><strong>3. CSS</strong></p><p>Your resume needs to be styled with CSS. No worries if you’re not a designer — neither am I. It doesn’t have to be fancy. But we need to see something other than raw HTML when we open the webpage.</p><p><strong>4. Static S3 Website</strong></p><p>Your HTML resume should be deployed online as an Amazon S3 static website. Services like Netlify and GitHub Pages are great and I would normally recommend them for personal static site deployments, but they make things a little too abstract for our purposes here. Use S3.</p><p><strong>5. HTTPS</strong></p><p>The S3 website URL should use HTTPS for security. You will need to use Amazon CloudFront to help with this.</p><p><strong>6. DNS</strong></p><p>Point a custom DNS domain name to the CloudFront distribution, so your resume can be accessed at something like my-c00l-resume-website.com. You can use Amazon Route 53 or any other DNS provider for this. A domain name usually costs about ten bucks to register.</p><p><strong>7. Javascript</strong></p><p>Your resume webpage should include a visitor counter that displays how many people have accessed the site. You will need to write a bit of Javascript to make this happen. Here is a helpful tutorial to get you started in the right direction.</p><p><strong>8. Database</strong></p><p>The visitor counter will need to retrieve and update its count in a database somewhere. I suggest you use Amazon’s DynamoDB for this. (Use on-demand pricing for the database and you’ll pay essentially nothing, unless you store or retrieve much more data than this project requires.)</p><p><strong>9. API</strong></p><p>Do not communicate directly with DynamoDB from your Javascript code. Instead, you will need to create an API that accepts requests from your web app and communicates with the database. I suggest using AWS’s API Gateway and Lambda services for this. They will be free or close to free for what we are doing.</p><p><strong>10. Python</strong></p><p>You will need to write a bit of code in the Lambda function; you could use more Javascript, but it would be better for our purposes to explore Python – a common language used in back-end programs and scripts — and its boto3 library for AWS.</p><p><strong>11. Tests</strong></p><p>You should also include some tests for your Python code.</p><p><strong>12. Infrastructure as Code</strong></p><p>You should not be configuring your API resources — the DynamoDB table, the API Gateway, the Lambda function — manually, by clicking around in the AWS console. Instead, define them in an AWS Serverless Application Model (SAM) template and deploy them using the AWS SAM CLI. This is called “infrastructure as code” or IaC. It saves you time in the long run.</p><p><strong>13. Source Control</strong></p><p>You do not want to be updating either your back-end API or your front-end website by making calls from your laptop, though. You want them to update automatically whenever you make a change to the code. (This is called continuous integration and deployment, or CI/CD.) Create a GitHub repository for your backend code.</p><p><strong>14. CI/CD (Back end)</strong></p><p>Set up GitHub Actions such that when you push an update to your Serverless Application Model template or Python code, your Python tests get run. If the tests pass, the SAM application should get packaged and deployed to AWS.</p><p><strong>15. CI/CD (Front end)</strong></p><p>Create a second GitHub repository for your website code. Create GitHub Actions such that when you push new website code, the S3 bucket automatically gets updated. (You may need to invalidate your CloudFront cache in the code as well.) Important note: DO NOT commit AWS credentials to source control! Bad hats will find them and use them against you!</p><p><strong>16. Blog post</strong></p><p>Finally, in the text of your resume, you should link a short blog post describing some things you learned while working on this project. Dev.to is a great place to publish if you don’t have your own blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb3952019b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to read data stored in RAM]]></title>
            <link>https://medium.com/@avikamjha/how-to-read-data-stored-in-ram-e462ce5f9215?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/e462ce5f9215</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[arth]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 07:33:05 GMT</pubDate>
            <atom:updated>2021-09-26T07:33:05.431Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*W9P5nWVrYHuH8nt5.jpeg" /></figure><h3>Why is computer memory (RAM) important?</h3><p>Computer random access memory (RAM) is one of the most important components in determining your system’s performance. RAM gives applications a place to store and access data on a short-term basis. It stores the information your computer is actively using so that it can be accessed quickly.</p><p><strong>What does RAM contains ?</strong></p><p>username passwords<br>-Recently opened file which has been wiped from disk<br>-process information<br>-list of all running processes<br>-command-line information<br>-Unencrypted data from an encrypted disk<br>-keystrokes<br>-network information<br>-crypto keys and ton lot of more data.</p><p>So it’s basically clear that RAM is one of the most important components in determining your system’s performance. RAM gives applications a place to store and access data on a short-term basis.</p><p>Also one of the use cases to read ram data is considered when has hacker done some illegal activity and police need proofs regarding the same, they usually read the read the RAM of hackers machine which actually provides the tree chart.</p><h3>So then How can one read what data is inside one’s RAM?</h3><p>There are multiple course of action to read RAM data each has its own use case I will explain one of the methods to read ram data.</p><p>The method that I will be using in that we will dump the whole ram data on disk and then we will read ram read data from it. I will show this in Linux-based Operating System. You could try doing it in Windows or MAC too.</p><h3>Tools Required for dumping ram data on disk:</h3><h3>Linux based O.S</h3><p>LiME , Linux Memory Grabber, fmem</p><h3>MAC O.S</h3><p>MACMemoryReader, Goldfish, OSXPMem</p><h3>Windows O.S</h3><p>FTK Imager, Winen</p><h3>Let’s get started,</h3><p>We will use LiMe (Linux Memory Extractor) to dump ram data on the disk, Since we are using linux operating system.</p><p>A Loadable Kernel Module (LKM) which allows for volatile memory acquisition from Linux and Linux-based devices, such as Android. This makes LiME unique as it is the first tool that allows for full memory captures on Android devices. It also minimizes its interaction between user and kernel space processes during acquisition, which allows it to produce memory captures that are more forensically sound than those of other tools designed for Linux memory acquisition</p><p><a href="https://github.com/504ensicsLabs/LiME">GitHub - 504ensicsLabs/LiME: LiME (formerly DMD) is a Loadable Kernel Module (LKM), which allows the acquisition of volatile memory from Linux and Linux-based devices, such as those powered by Android. The tool supports acquiring memory either to the file system of the device or over the network. LiME is unique in that it is the first tool that allows full memory captures from Android devices. It also minimizes its interaction between user and kernel space processes during acquisition, which allows it to produce memory captures that are more forensically sound than those of other tools designed for Linux memory acquisition.</a></p><p>We can simply download the source code and compile it to binary files with make. To perform ram acquisition but you can do this on any Linux based O.S.</p><blockquote><strong>Also install kernel headers to do ram acquisition.</strong></blockquote><p><strong>yum install kernel-devel kernel-headers -y</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*ZqtnmGhYCS9fQa2dNd67Bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*W1OFNXoqL8LzdBTVG67SYQ.png" /></figure><blockquote><strong>Also make sure you install the git package</strong></blockquote><p><strong>yum install git</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*K2ZL5TotxTP2v1Fw5Vq6Jg.png" /></figure><blockquote><strong>Now we have to clone the GitHub repo of LiME</strong></blockquote><p><strong>git clone </strong><a href="https://github.com/504ensicsLabs/LiME.git"><strong>https://github.com/504ensicsLabs/LiME.git</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*v4_EhDk4mOeEQEGNe1yxFA.png" /></figure><blockquote><strong>Now we can compile the source code of LiME… first, we need to navigate to the src directory</strong></blockquote><p><strong>cd LiMe/src</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*_Ijd496_S9Lf80l0k6OTWA.png" /></figure><p>“Make” is typically used to <strong>build executable programs and libraries from source code</strong>. Generally though, Make is applicable to any process that involves executing arbitrary commands to transform a source file to a target result.</p><blockquote><strong>Install make first</strong></blockquote><p><strong>yum install make</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*oZaQgLKx3dnOD8NxyL-0Zw.png" /></figure><blockquote><strong>Now we can simply type the “make” command it will compile the source code and give us a loadable kernel object file</strong></blockquote><p><strong>make</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*UoDHJm5Zf5qFlGKz-vKvaQ.png" /></figure><blockquote><strong>if you get this error make sure you install two more package/module</strong></blockquote><p><strong>yum groupinstall “Development tools”<br>yum install elfutils-libelf-devel</strong></p><blockquote><strong>After running this command again hit make keyword</strong></blockquote><p><strong>make</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*g-PaaRkXPTSkjXGz62LY7Q.png" /></figure><blockquote>Here,what we have done is that we have compile the LiMe for a specific kernel as loadable kernel object.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*SZCWu_PhV9FYOPSYxMPH8Q.png" /></figure><p>But before we have to generate some data in ram so once we dump ram data we can verify with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*1H856J3Vw0qHNGe-gMwbgA.png" /></figure><blockquote><strong>Now let’s insert the kernel object we will provide the path and the format in which we want to save the image as</strong></blockquote><p><strong>insmod ./lime-4.14.198–152.320.amzn2.x86_64.ko “path=./ramdata.mem format=raw”</strong></p><p>Depending on the ram size and disk I/O speed it will take time to dump ram data. you can give any name to folder like I have provided “ramdata.mem”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*4qrcIURq9xiJ17mv6V5SOQ.png" /></figure><p><strong>NOTE: “When you compile LiME will append the kernel version to the file name. Make sure you are using the full .ko file name when using insmod, or rename the .ko file to “lime.ko”</strong></p><p>In the above image we have created a “ramdata.mem” file this contains all ram data at that point of time now we can verify it that the python variable we had created earlier</p><blockquote><strong>Type this command to check if variable value resides in ram or not</strong></blockquote><p><strong>cat ramdata.mem | strings | grep “x=5”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*wZ1pRBCJzSx9jn4WbEjhUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*yiyTe6z8T9rrFm8tVl4JgA.png" /></figure><p>we can cat the ramdata.mem and pipe it to strings because ram contains data in binary or other encodings so strings will convert it into a string and then we can grep with the variable name.</p><p>Now we have verified that value and variable is stored in the RAM memory, we can different tools and can do more analysis here to get details about CPU caches or every network connection details, socket information, website info, caches, tokens, passwords, usernames, encrypted disk data and a lot of other things.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e462ce5f9215" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Funny Commands in Linux]]></title>
            <link>https://medium.com/@avikamjha/funny-commands-in-linux-150d923c22c3?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/150d923c22c3</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linuxworld]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[funny]]></category>
            <category><![CDATA[arth]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Mon, 20 Sep 2021 20:07:10 GMT</pubDate>
            <atom:updated>2021-09-20T20:07:10.612Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For a linux user, the terminal or command line is a powerful and important tool for work. A lot of things on linux are done inside the terminal.</em></p><p><em>When working on a linux server, the command line shell is the only interface to work with, most of the time. But the terminal is also very textish and a bit non-interesting at times.</em></p><p><em>The linux terminal is not always dull and boring. There are commands to make it do some funny acts to entertain the user.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*RP75Lu9Ovt9sGPoZ" /></figure><h3>sl (Steam Locomotive)</h3><p>You might be aware of command ‘<a href="https://www.tecmint.com/15-basic-ls-command-examples-in-linux/">ls</a>‘ the list command, which is used frequently to view the contents of a folder but because of miss-typing sometimes you would result in ‘<strong>sl</strong>‘, how about getting a little fun in the terminal and not “<strong>command not found</strong>“.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*3BeVbjnPYc76bClkd82mtg.png" /><figcaption>First install the package</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*Owexd91K41FVtY7j75pb0g.png" /><figcaption>sl command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*DmGZIMacueH7Tn5UPktizQ.png" /><figcaption>Steam Locomotive</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*D2Wa50LAsmcj7r_bLL6DSQ.png" /><figcaption>sl -F command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*JcJpfQIqsblwYemeNeSXPQ.png" /><figcaption>This should make the locomotive get wings to fly off from the terminal window!</figcaption></figure><h3>rev (Reverse)</h3><p>It <strong>reverses</strong> every string given to it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*jhfLO5QfKipHwEhzxErK7A.png" /><figcaption>rev</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*juRBP_UwEgIz-MQi.jpg" /><figcaption>Linux is interesting!!!</figcaption></figure><h3><strong>Command: Cowsay</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*396NQsap1JJhZzlAsce8rw.png" /><figcaption>Install the package cowsay</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*SsQBfNmjuAiDBeRAFMzunw.png" /><figcaption>Cowsay command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*VsAwzG6JEsMpRuJWxwdYJA.png" /><figcaption>Cowsay</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*vp7jvJRj6Qed05d-U8k5GA.png" /><figcaption>Cowsay</figcaption></figure><h3>yes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*NuNq9hJBBJa5SZn1dhzhsg.png" /><figcaption>yes command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*nN_Gc16PO7jgHJmvirnK2Q.png" /><figcaption>It keeps on running</figcaption></figure><h3>Fork Bomb</h3><p>This is a very nasty piece of code. Run this at your own risk. This actually is a fork bomb which exponentially multiplies itself till all the system resource is utilized and the system hangs. (To check the power of above code you should try it once, but all at your own risk, close and save all other programs and file before running fork bomb)</p><pre>:(){ :|:&amp; }:</pre><h3>figlet</h3><p>You can use the <strong><em>figlet</em></strong> command to draw large-sized text banners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*JzX-i0n5pLf2u66wMbZhJw.png" /><figcaption>Install the package figlet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*JTYOZJVpf04RzhZzQuwNwg.png" /><figcaption>Run figlet Linux Rocks</figcaption></figure><h3>Banner</h3><p>Similar to figlet, display the text in a big banner format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*CsgY4VULpZAAK6g27z8Dyg.png" /><figcaption>install the package banner</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*r-XI97JqbhQKUl3LS5thrA.png" /><figcaption>banner command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pl7HfeinNXQHQtxjYpirIg.png" /></figure><h3>Cowthink</h3><p>This command is similar to cowsay, with the only difference being the output is displayed as a thought.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*9Dgz1lIUgw6euNHc8-84Wg.png" /><figcaption>Use of the command and output</figcaption></figure><h3>time cat</h3><p>The terminal is a very powerful tool, and it’s probably the most interesting part in Unix. Among the plethora of useful commands and scripts you can use, some seem less practical, if not completely useless. Here are some Bash commands that are fun, and some of them are useful as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*yNTes_pssnYDhAfRU2JF7g.png" /><figcaption>time cat command</figcaption></figure><h3>aafire</h3><p>Ever wondered what fire would look like on the black interface of the terminal? This can be achieved with the aafire command.</p><p><strong>yum install aafire</strong></p><p><strong>aafire</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*m2PdInQBrRniDC6Y.png" /><figcaption>fire in the terminal</figcaption></figure><h3>fortune</h3><p>fortune displays a random sentence in the same spirit as fortune cookies. It is not always installed by default, so you may want to add it.</p><p><strong>yum install fortune</strong></p><p>It comes with a very handy option: -s for short, which will limit it to fortunes composed of one sentence or less.</p><p><strong>fortune [-s]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*KRmkF75By5gaFizN.png" /></figure><h3>Oneko</h3><p>This command adds some spice to your terminal by adding a cat to your screen which will chase after your (mouse) cursor.</p><p><strong>yum install oneko</strong></p><p>Type oneko to display the cat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/0*LJX4MiDc1g3UilZd.png" /></figure><h3>cmatrix</h3><p>If you have seen the Hollywood movie Matrix, then you will relate easily to this command.</p><p><strong>yum install cmatrix</strong></p><p>Run it by typing cmatrix in your terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*o0eh6pSiLkWI_YNc.png" /></figure><p>Linux has an ocean of commands some are interesting , some quite funny , some lengthy , some are of 1 or 2 alphabets . These variety of Commands make Linux fun to use</p><p>I hope this article shows the funny side of commands used in Linux</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=150d923c22c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with AWS CLI (Windows)]]></title>
            <link>https://medium.com/@avikamjha/getting-started-with-aws-cli-windows-d76e6af52f1a?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/d76e6af52f1a</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[aws-cli]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Mon, 20 Sep 2021 11:40:11 GMT</pubDate>
            <atom:updated>2021-09-20T11:40:52.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*BMTeA1PzVsRhWuhe.png" /></figure><p>The AWS Command Line Interface (AWS CLI) is a unified tool that provides a consistent interface for interacting with all parts of Amazon Web Services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*CPCjlZBe8B8FHmS0" /></figure><h3><strong>Install AWS CLI (Linux/Windows/Mac)</strong></h3><p><a href="https://aws.amazon.com/cli/">AWS CLI</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wfb9oG8U2onxL1mdS3Is7A.png" /><figcaption>The web page to go and install</figcaption></figure><p>Install it in your pc</p><p>You could check if it installed by going to cmd and running the command aws — version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8oFU4FFqm2cELSrV88TZQ.png" /><figcaption>for windows</figcaption></figure><p><strong>Configure AWS CLI</strong></p><p>Go your username , hit the dropdown, then go to my security credentials , select the access key section ,create new access key , show access key , download the file)in csv format) or copy it and keep them safely.</p><p>If you do lose your credentials you could delete them from the console so that you dont fall into trouble</p><p>Now go to cmd and type</p><p>aws configure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*leUwtkcZUlIziexo" /></figure><p>You’ll have to type your AWS Access key ID , AWS Secret Access Key and you need to type in a default region name (try to choose a region which is geographically closer to you”) and for the default output format amazon provides you with a few options such as:</p><ul><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html#json-output">json</a> — The output is formatted as a <a href="https://json.org/">JSON</a> string. (default)</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html#yaml-output">yaml</a> — The output is formatted as a <a href="https://yaml.org/">YAML</a> string. <em>(Available in the AWS CLI version 2 only.)</em></li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html#yaml-stream-output">yaml-stream</a> — The output is streamed and formatted as a <a href="https://yaml.org/">YAML</a> string. Streaming allows for faster handling of large data types. <em>(Available in the AWS CLI version 2 only.)</em></li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html#text-output">text</a> — The output is formatted as multiple lines of tab-separated string values. This can be useful to pass the output to a text processor, like grep, sed, or awk.</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html#table-output">table</a> — The output is formatted as a table using the characters +|- to form the cell borders. It typically presents the information in a “human-friendly” format that is much easier to read than the others, but not as programmatically useful.</li></ul><p>What does aws configure do?</p><p>Go to This PC , C drive , Users , and you’re username , it created a .aws folder and when you click that you will see a aws configure file(output,region) and aws credentials file(access id and secret access key) , So when you type aws commands in the cmd , it uses these credentials and configurations and makes the suitable changes.</p><h3>Profiles</h3><p>A collection of settings is called a profile. By default, the AWS CLI uses the default profile. You can create and use additional named profiles with varying credentials and settings by specifying the --profile option and assigning a name.</p><p>Other methods which you could use to configure is given below:</p><p><strong>Configuration settings and precedence</strong></p><p>The AWS CLI uses credentials and configuration settings located in multiple places, such as the system or user environment variables, local AWS configuration files, or explicitly declared on the command line as a parameter. Certain locations take precedence over others. The AWS CLI credentials and configuration settings take precedence in the following order:</p><ol><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html"><strong>Command line options</strong></a> — Overrides settings in any other location. You can specify --region, --output, and --profile as parameters on the command line.</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html"><strong>Environment variables</strong></a> — You can store values in your system’s environment variables.</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html"><strong>CLI credentials file</strong></a> — The credentials and config file are updated when you run the command aws configure. The credentials file is located at ~/.aws/credentials on Linux or macOS, or at C:\Users\<em>USERNAME</em>\.aws\credentials on Windows. This file can contain the credential details for the default profile and any named profiles.</li><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html"><strong>CLI configuration file</strong></a> — The credentials and config file are updated when you run the command aws configure. The config file is located at ~/.aws/config on Linux or macOS, or at C:\Users\<em>USERNAME</em>\.aws\config on Windows. This file contains the configuration settings for the default profile and any named profiles.</li><li><a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html"><strong>Container credentials</strong></a> — You can associate an IAM role with each of your Amazon Elastic Container Service (Amazon ECS) task definitions. Temporary credentials for that role are then available to that task’s containers. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM Roles for Tasks</a> in the <em>Amazon Elastic Container Service Developer Guide</em>.</li><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html"><strong>Instance profile credentials</strong></a> — You can associate an IAM role with each of your Amazon Elastic Compute Cloud (Amazon EC2) instances. Temporary credentials for that role are then available to code running in the instance. The credentials are delivered through the Amazon EC2 metadata service. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html">IAM Roles for Amazon EC2</a> in the <em>Amazon EC2 User Guide for Linux Instances</em> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html">Using Instance Profiles</a> in the <em>IAM User Guide</em>.</li></ol><h3>Command structure</h3><p>The AWS CLI uses a multipart structure on the command line that must be specified in this order:</p><ol><li>The base call to the aws program.</li><li>The top-level <em>command</em>, which typically corresponds to an AWS service supported by the AWS CLI.</li><li>The <em>subcommand</em> that specifies which operation to perform.</li><li>General AWS CLI options or parameters required by the operation. You can specify these in any order as long as they follow the first three parts. If an exclusive parameter is specified multiple times, only the <em>last value</em> applies.</li></ol><p><strong>aws &lt;command&gt; &lt;subcommand&gt; [options and parameters]</strong></p><p>It is not hard to use AWS CLI but it sure would feel tough to remember all the options so AWS helps us with the help command the documentation</p><p><strong>aws help</strong></p><p><strong>aws ec2 help</strong></p><p><strong>aws ec2 describe-instances help</strong></p><p><a href="https://docs.aws.amazon.com/cli/index.html">https://docs.aws.amazon.com/cli/index.html</a></p><p><a href="https://docs.aws.amazon.com/cli/latest/index.html">AWS CLI Command Reference - AWS CLI 1.20.44 Command Reference</a></p><p>So now we won’t need to remember any commands ,subcommands, options or parameters</p><h3>Examples of a few tasks</h3><h3>Create a key pair</h3><p>To create a key pair, use the <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/create-key-pair.html">aws ec2 create-key-pair</a> command with the --query option, and the --output text option to pipe your private key directly into a file.</p><p><strong>aws ec2 create-key-pair — key-name MyKeyPair — query ‘KeyMaterial’ — output text &gt; MyKeyPair.pem</strong></p><h3>Display your key pair</h3><p>A “fingerprint” is generated from your key pair, and you can use it to verify that the private key that you have on your local machine matches the public key that’s stored in AWS.</p><p><strong>aws ec2 describe-key-pairs — key-name MyKeyPair</strong></p><p>Run these commands in cmd and you’ll find the key pairs available in your users folder</p><p>(You could also see it in the AWS Management Console)</p><p><strong>Delete your Key Pair</strong><br>To delete a key pair, run the aws ec2 delete-key-pair command, substituting MyKeyPair with the name of the pair to delete.</p><p><strong>$ aws ec2 delete-key-pair — key-name MyKeyPair</strong></p><h3>Launch your instance</h3><p>To launch an Amazon EC2 instance using the AMI you selected, use the <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html">aws ec2 run-instances</a> command. You can launch the instance into a virtual private cloud (VPC), or if your account supports it, into EC2-Classic.</p><h4>EC2-VPC</h4><p>The following example shows how to launch a t2.micro instance in the specified subnet of a VPC.</p><p><strong>aws ec2 run-instances — image-id ami-xxxxxxxx — count 1 — instance-type t2.micro — key-name MyKeyPair — security-group-ids sg-903004f8 — subnet-id subnet-6e7f829e</strong></p><p>Type in the ami ids, number of instances , instance type , key pairs , security group, subnet ids</p><h3>To terminate an Amazon EC2 instance</h3><h4>aws ec2 terminate-instances — instance-ids i-1234567890abcdef0</h4><p>So as there are n number of services in AWS , there are n number of commands too so Its better to use aws cli documentation and reference guide and try to use AWS CLI more than the management console.</p><p>I hope this article helps you start your journey with AWS CLI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d76e6af52f1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Date command in Linux]]></title>
            <link>https://medium.com/@avikamjha/date-command-in-linux-574f801b081e?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/574f801b081e</guid>
            <category><![CDATA[date]]></category>
            <category><![CDATA[linuxworld]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Sun, 19 Sep 2021 07:15:12 GMT</pubDate>
            <atom:updated>2021-09-19T07:15:12.013Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Linux <strong>date</strong> command displays and sets the system date and time. This command also allows users to print the time in different formats and calculate future and past dates</blockquote><h3>Synopsis</h3><p>date [option]… [+format]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/0*qDwAGt4RnPgGC8ez" /><figcaption>Date Command in Linux</figcaption></figure><p><strong>date</strong> = To show the current system time and date, type in the date command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*O1H1akUScMwFKc5-gun18Q.png" /><figcaption>date</figcaption></figure><p>The output displays the day of the week, day of the month, month, year, current time, and time zone. By default, the <strong>date</strong> command is set to the time zone of the operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*85zsTrWMkFuf6dAy.gif" /></figure><p>The <strong>-d</strong> option allows users to operate on a specific date.</p><p>It is worth noting that the format for the input is YYYY-MM-DD. So, if you type something in a different order, you will encounter an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*pt6RNPdi2t5d4CkpKdN_Vw.png" /><figcaption>date -d “2021–9–24 09:10:15”</figcaption></figure><p>You can use the <strong>--date</strong> command to display the given date string in the format of a date. This command does not affect the system’s actual date and time values, and it only prints the requested date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*qd_7shwoTQkZ1sK4pkdAEA.png" /><figcaption>date — date=”04/10/2000&quot;</figcaption></figure><h3>Linux date Command Format Options</h3><p>To format the <strong>date</strong> command’s output, you can use control characters preceded by a <strong>+</strong> sign. Format controls begin with the <strong>%</strong> symbol and are substituted by their current values.</p><p>These are the most common formatting characters for the date command:</p><p>%D — Display date as mm/dd/yy<br>%Y — Year (e.g., 2020)<br>%m — Month (01–12)<br>%B — Long month name (e.g., November)<br>%b — Short month name (e.g., Nov)<br>%d — Day of month (e.g., 01)<br>%j — Day of year (001–366)<br>%u — Day of week (1–7)<br>%A — Full weekday name (e.g., Friday)<br>%a — Short weekday name (e.g., Fri)<br>%H — Hour (00–23)<br>%I — Hour (01–12)<br>%M — Minute (00–59)<br>%S — Second (00–60)</p><p>To see all formatting options, run <strong>date --help</strong> or the <a href="https://phoenixnap.com/kb/linux-man">man command</a> <strong>man date</strong> in your terminal.</p><p>Some of the examples are shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*LGeDi_j2qDZsq_mqhsEftg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*yRwhsere2tyUzRiuPDJNgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*UA3s3sFxnTFqwJOEd9IBxA.png" /></figure><h3>Set or Change Date in Linux</h3><p>To change the system clock manually, use the <strong>--set</strong> command.</p><p>date — set=”20210513 05:30&quot;</p><p>Most Linux distributions have the system clock synchronized using the ntp or the systemd-timesyncd services, so be careful when the setting the clock manually.</p><h3>Display Past Dates</h3><p>Use the <strong>--date</strong> option to display past and future dates in Linux. The <strong>date</strong> command accepts values such as <strong>&quot;tomorrow&quot;</strong>, <strong>&quot;Friday&quot;</strong>, <strong>&quot;last Friday&quot;</strong>, <strong>&quot;next Friday&quot;</strong>, <strong>&quot;next week&quot;</strong>, and similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*DGVKku8NpX91-PC6GTRbcA.png" /><figcaption>2 years ago</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*gZWFN0HL-Gkf0ZhtlhGUxw.png" /><figcaption>5 days ago</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*tjbAnqkkvluDbjqZRxg5Hw.png" /><figcaption>next monday</figcaption></figure><h3>Display the Date String at Line of File</h3><p>The <strong>--file</strong> option prints the date string present at each line of the file. Unlike the <strong>--date</strong> option, <strong>--file</strong> can present multiple date strings at each line.</p><p><strong>date — file=file_name.txt</strong></p><h3>Display Last Modified Timestamp of a Date File</h3><p>When you use the <strong>-r</strong> option, the <strong>date</strong> command prints the last modification time of a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*LDFt0rP2mziCNZfwnWQ0Jg.png" /><figcaption>prints the last time the hosts file was changed</figcaption></figure><h3>Override a Time Zone</h3><p>By default, the <strong>date</strong> command uses the time zone defined in <strong>/etc/localtime</strong>. To use a different time zone in the environment, set the <strong>TZ</strong> variable to the desired time zone.</p><p><strong>TZ=’America/New_York’ date</strong></p><p>Type in the <strong>date</strong> command to return the system to its default time zone. To see all available time zones, use the <strong>timedatectl list-timezones </strong>command.</p><p>There would be many more commands and options available with the date command , I have tried to use a few of them , and I would welcome new and exciting suggestions from everyone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=574f801b081e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[espeak-ng — Linux Command]]></title>
            <link>https://medium.com/@avikamjha/espeak-ng-linux-command-12da6a8b9af6?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/12da6a8b9af6</guid>
            <category><![CDATA[linuxworld-informatics]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[linuxworld]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Sat, 18 Sep 2021 12:48:56 GMT</pubDate>
            <atom:updated>2021-09-18T12:48:56.793Z</atom:updated>
            <content:encoded><![CDATA[<h3>espeak-ng — Linux Command</h3><p><em>It is a software speech synthesizer for English, and some other languages</em></p><h4>SYNOPSIS</h4><p><strong><em>espeak-ng</em></strong><em> [options] [words]</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BWZvkRG2pzBVZRY0.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*-2nE0VPntSIkYCx7" /></figure><h4>OPTIONS</h4><p><strong>-h, — help</strong> = Show summary of options.</p><p><strong>— version</strong> =Prints the espeak library version and the location of the espeak voice data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*5m1C7gqlKr-iohKx" /><figcaption>espeak-ng — version</figcaption></figure><p><strong>-f &lt;text file&gt;</strong> = Text file to speak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*pJnkMz3tw0xpd0BU" /><figcaption>Created a file hi.txt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*yNTC7C-3M-bMhakh" /><figcaption>Type in some text</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*kafVdMvQds0xoHAR" /><figcaption>“Hi There” would be heard from the speaker</figcaption></figure><p><strong>— stdin</strong> = Read text input from stdin instead of a file.</p><p><strong>-d &lt;device&gt;</strong> = Use the specified device to speak the audio on. If not specified, the default audio device is used.</p><p><strong>-q</strong> = Quiet, don´t produce any speech (may be useful with -x).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*Fjq7LYArhpJo3odk" /><figcaption>espeak-ng -f hi.txt -q</figcaption></figure><p><strong>-a &lt;integer&gt;</strong> = Amplitude, 0 to 200, default is 100.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*arrv4bx7Rvrh9u7v" /><figcaption>espeak-ng -f hi.txt -a 150</figcaption></figure><p><strong>-g &lt;integer&gt;</strong> = Word gap. Pause between words, units of 10ms at the default speed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*QbZSc0fuDCKq0-Qj" /><figcaption>espeak-ng -f hi.txt -g 150</figcaption></figure><p><strong>-k &lt;integer&gt;</strong> = Indicate capital letters with: 1=sound, 2=the word “capitals”, higher values = a pitch increase (try -k20).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*HULLCwsHtSreW9Fv" /></figure><p><strong>-l &lt;integer&gt;</strong> = Line length. If not zero (which is the default), consider lines less than this length as end-of-clause.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*Aus8CbqLQL7ayieT" /><figcaption>espeak-ng -f hi.txt -l 5</figcaption></figure><p><strong>-p &lt;integer&gt;</strong> = Pitch adjustment, 0 to 99, default is 50.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/0*tcmvKxiiXU_Q4kBN" /><figcaption>espeak-ng -f hi.txt -p 70</figcaption></figure><p><strong>-s &lt;integer&gt;</strong> = Speed in words per minute, default is 160.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*gc0k8pYudFSdTHyx" /><figcaption>espeak-ng -f hi.txt -s 250</figcaption></figure><p><strong>-v &lt;voice name&gt;</strong> = Use voice file of this name from espeak-ng-data/voices. A variant can be specified using voice+variant (af+m3)(african , male voice version 3)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*8jXzetgFk2UZke0h" /><figcaption>1- espeak-ng -f hi.txt -v af+m3 , 2 -espeak-ng -f hi.txt -v hi+f2</figcaption></figure><p><strong>-w &lt;wave file name&gt;</strong> = Write output to this WAV file, rather than speaking it directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*E0CNJQaujhqDQo_5" /><figcaption>espeak-ng -f hi.txt -w bye.txt</figcaption></figure><p><strong>— split=&lt;minutes&gt;</strong> = Used with -w to split the audio output into &lt;minutes&gt; recorded chunks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*ycZsWJktbC97EfVK" /><figcaption>espeak-ng “Hey I am happy , what about you?” — split=1</figcaption></figure><p><strong>-b </strong>= Input text encoding, 1=UTF8, 2=8 bit, 4=16 bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*hbnevECE8dCuekTr" /><figcaption>espeak-ng “Hey I am happy , what about you?” -b 4</figcaption></figure><p><strong>-m</strong> = Indicates that the text contains SSML (Speech Synthesis Markup Language) tags or other XML tags. Those SSML tags which are supported are interpreted. Other tags, including HTML, are ignored, except that some HTML tags such as &lt;hr&gt; &lt;h2&gt; and &lt;li&gt; ensure a break in the speech.</p><p><strong>-x</strong> = Write phoneme mnemonics to stdout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*k2COOzUdnzkbiBpl" /><figcaption>espeak-ng “Hey I am happy , what about you?” -x</figcaption></figure><p><strong>-X</strong> =Write phonemes mnemonics and translation trace to stdout. If rules files have been built with — compile=debug, line numbers will also be displayed.</p><p><strong>-z</strong> = No final sentence pause at the end of the text.</p><p><strong>— stdout</strong> = Write speech output to stdout.</p><p><strong>— compile=voicename =</strong> Compile the pronunciation rules and dictionary in the current directory. =&lt;voicename&lt; is optional and specifies which language is compiled.</p><p><strong>— compile-debug </strong>= voicename Compile the pronunciation rules and dictionary in the current directory as above, but include line numbers, that get shown when -X is used.</p><p><strong>— ipa</strong> = Write phonemes to stdout using International Phonetic Alphabet. — ipa=1 Use ties, — ipa=2 Use ZWJ, — ipa=3 Separate with _.</p><p><strong>— tie=&lt;character&gt;</strong> = The character to use to join multi-letter phonemes in -x and — ipa output.</p><p><strong>— path=&lt;path&gt;</strong> = Specifies the directory containing the espeak-ng-data directory.</p><p><strong>— pho</strong> = Write mbrola phoneme data (.pho) to stdout or to the file in — phonout.</p><p><strong>— phonout=&lt;filename&gt;</strong> = Write output from -x -X commands and mbrola phoneme data to this file.</p><p><strong>— punct</strong> =”&lt;characters&gt;” = Speak the names of punctuation characters during speaking. If =&lt;characters&gt; is omitted, all punctuation is spoken.</p><p><strong>— sep </strong>= &lt;character&gt;<br> The character to separate phonemes from the -x and — ipa output.</p><p><strong>— voices[=&lt;language code&gt;]</strong> = Lists the available voices. If =&lt;language code&gt; is present then only those voices which are suitable for that language are listed.</p><p><strong>— voices=&lt;directory&gt;</strong> = Lists the voices in the specified subdirectory.</p><p>We could combine commands and use espeak-ng too</p><p><strong>cat hi.txt | espeak-ng</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*HlKnGL9mJ9uRNPn3" /><figcaption>Speaks out content from the hi.txt file</figcaption></figure><p>I did try to use most of the options of espeak-ng command , its a great command which does TTS (Text to speech) and could be used to make great projects</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12da6a8b9af6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zenity — Linux Command]]></title>
            <link>https://medium.com/@avikamjha/zenity-linux-command-de7ccdfa7bc2?source=rss-cbb1a6f0e994------2</link>
            <guid isPermaLink="false">https://medium.com/p/de7ccdfa7bc2</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[zenity]]></category>
            <dc:creator><![CDATA[Avikamjha]]></dc:creator>
            <pubDate>Sat, 18 Sep 2021 06:18:38 GMT</pubDate>
            <atom:updated>2021-09-18T06:18:38.713Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zenity — Linux Command</h3><p><strong>zenity</strong> is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users input. This allows you to present information, and ask for information from the user, from all manner of shell scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*pa_b4wVxIPXBTvWJ.png" /><figcaption>Types of zenity dialog boxes</figcaption></figure><h3>Synopsis</h3><p><strong>zenity</strong> [<em>options</em>]</p><h3>Options</h3><p>This program follows the usual GNU command line syntax, with long options starting with two dashes (`--’).</p><p><strong>Dialog options</strong></p><p><strong>— calendar = </strong>Display calendar dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*eYX5qoQ3twg_X4_M" /><figcaption>zenity — calendar</figcaption></figure><p><strong>— entry =</strong>Display text entry dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*szfoPc-WZzWKxfsC" /><figcaption>zenity — entry</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*lE2pwo5gqaH2vIZG" /><figcaption>Add Text</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*DnnRH2Mw4fdjs2-7" /><figcaption>Output</figcaption></figure><p><strong>— error =</strong>Display error dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*JpTho47Lj9Zk1xEn" /><figcaption>zenity — error</figcaption></figure><p><strong>— progress = </strong>Display progress indication dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*eRh7Ls4e7lspxTug" /><figcaption>zenity — progress</figcaption></figure><p><strong>— question = </strong>Display question dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*Xon6hxM0MAOyDpvN" /><figcaption>zenity — question</figcaption></figure><p><strong>— text-info = </strong>Display text information dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*bSfaiFC0NcJcTMx4" /><figcaption>zenity — text-info</figcaption></figure><p><strong>— warning = </strong>Display warning dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*WESI_KeQgibpNF5I" /><figcaption>zenity — warning</figcaption></figure><p><strong>— scale = </strong>Display scale dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*dJzMi0z6DeXBL4Gl" /><figcaption>zenity — scale</figcaption></figure><p><strong>— color-selection = </strong>Display color selection dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*9MS9TWM-9VAP8ZJh" /><figcaption>zenity — color-selection</figcaption></figure><p><strong>— password = </strong>Display password dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*Om4260SKZ4Kex8Az" /><figcaption>zenity — password</figcaption></figure><p><strong>— forms = </strong>Display forms dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*vQvuO5cobMWfGMRL" /><figcaption>zenity — forms</figcaption></figure><p><strong>— file-selection = </strong>Display file selection dialog</p><p><strong>— list = </strong>Display list dialog</p><p><strong>— notification = </strong>Display notification</p><h4>General options</h4><p><strong>— title =TITLE = </strong>Set the dialog title</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*FWdp0UBc-phySJ0E" /><figcaption>zenity — entry — text=”Welcome here”</figcaption></figure><p><strong>Calendar Options</strong></p><p><strong>— text=STRING = </strong>Set the dialog text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*ayvLKzA32UobsoZX" /><figcaption>zenity — calendar — text=”September 2021&quot;</figcaption></figure><p><strong>— day=INT = </strong>Set the calendar day</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*AGP6Y5LUXx4T8J-m" /><figcaption>zenity — calendar — day=5</figcaption></figure><p><strong>— month=INT = </strong>Set the calendar month</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*V3S9z3PUp9f9wm4M" /><figcaption>zenity — calendar — month=7</figcaption></figure><p><strong>— year=INT = </strong>Set the calendar year</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/0*PAoOVsdHXOcoGzAH" /><figcaption>zenity — calendar — year=2000</figcaption></figure><p><strong>Error options</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*N8vfGgrzgDE6a_K-" /><figcaption>zenity — error — text=”The error is”</figcaption></figure><p><strong>Text entry options</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*lc1gv6EK0tvt22K7" /><figcaption>zenity — entry — entry-text=”type something”</figcaption></figure><p><strong>File selection options</strong></p><p><strong>— filename=FILENAME = </strong>Set the file or directory to be selected by default</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*tYEdruTxkNcmg65b" /><figcaption>zenity — file-selection — filename=mycode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*84F9WUB9CxagGw-4" /><figcaption>Sets the file or directory to be selected by default</figcaption></figure><p><strong>— multiple = </strong>Allow selection of multiple filenames in file selection dialog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*sxc-prCS-cVyLkMJ" /><figcaption>zenity — file-selection — multiple</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*Jy3acYNqD4uPez43" /><figcaption>selection of multiple filenames in file selection dialog</figcaption></figure><p><strong>List options</strong></p><p><strong>— column=STRING = </strong>Set the column header</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*hSecj_IJ-Xfx9haz" /><figcaption>zenity — list — column=”Hi”</figcaption></figure><p><strong>— text=STRING = </strong>Set the dialog text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/0*EoIbeJKHehf73hOc" /><figcaption>zenity — list — column=”Hi” — text=”salutation”</figcaption></figure><p><strong>Notification options</strong></p><p><strong>— text=STRING = </strong>Set the notification text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*y3fiJ4Ow1GZWB0Dr" /><figcaption>zenity — notification — text=”A notification for you “</figcaption></figure><p><strong>Progress options</strong></p><p><strong>— text=STRING = </strong>Set the dialog text</p><p><strong>— percentage=INT = </strong>Set initial percentage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*w-QJQu348k2QbGUg" /><figcaption>zenity — progress — text=”Almost Completed” — percentage=80</figcaption></figure><p><strong>Question options</strong></p><p><strong>— text=STRING =</strong>Set the dialog text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*XzPrQWW377avXEMp" /><figcaption>zenity — question — text=”is it correct “</figcaption></figure><p><strong>Scale options</strong></p><p><strong>— value=VALUE = </strong>Set initial value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*7ME1Tgpd4a2f4PF1" /><figcaption>zenity — scale — value=10</figcaption></figure><p><strong>— min-value=VALUE = </strong>Set minimum value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*LX3hps8sGzQbWJZJ" /><figcaption>zenity — scale — min-value=0</figcaption></figure><p><strong>— max-value=VALUE = </strong>Set maximum value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*UrxkKIMVmM_8XSSc" /><figcaption>zenity — scale — max-value=40</figcaption></figure><p><strong>Color selection options</strong></p><p><strong>— show-palette = </strong>Show the palette</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/0*XOwmJFcO3iXJiR65" /><figcaption>zenity — color-selection — show-palette</figcaption></figure><p><strong>Password dialog options</strong></p><p><strong>— username = </strong>Display the username field</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*trXdUVQ8UXmtD9ke" /></figure><p><strong>Forms dialog options</strong></p><p><strong>— add-entry=FIELDNAME = </strong>Add a new Entry in forms dialog</p><p><strong>— add-password=FIELDNAME = </strong>Add a new Password Entry in forms dialog</p><p><strong>— add-calendar=FIELDNAME = </strong>Add a new Calendar in forms dialog</p><p><strong>— text=STRING = </strong>Set the dialog text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*ZK2JiJwRHWZPlIvC" /><figcaption>zenity — forms — add-entry=Col1 — add-password=Col1 — add-calendar=Calendar — text=”form1&quot;</figcaption></figure><p><strong>Miscellaneous options</strong></p><p><strong>-?, — help = </strong>Show summary of options.</p><p><strong>— about = </strong>Display an about dialog.</p><p><strong>— version = </strong>Show version of program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*UCViqG47rcIWM2YB" /><figcaption>zenity — version</figcaption></figure><blockquote>To explore more options use the user manual (man command)</blockquote><p>man zenity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de7ccdfa7bc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>