{"id":2598,"date":"2023-03-28T15:27:50","date_gmt":"2023-03-28T13:27:50","guid":{"rendered":"https:\/\/nguenkam.com\/blog\/?p=2598"},"modified":"2023-03-28T15:27:50","modified_gmt":"2023-03-28T13:27:50","slug":"bashrc-file","status":"publish","type":"post","link":"https:\/\/nguenkam.com\/blog\/index.php\/2023\/03\/28\/bashrc-file\/","title":{"rendered":".bashrc File"},"content":{"rendered":"\n<p>The <code>.bashrc<\/code> file is a hidden configuration file for the Bash shell on Linux and Unix systems. It is typically located in the home directory of the user who is currently logged in. In Debian, the default location for the <code>.bashrc<\/code> file is <code>\/home\/username\/.bashrc<\/code>, where &#8220;username&#8221; is the name of the user account.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To access the <code>.bashrc<\/code> file, you can use a text editor such as nano or vi to open the file.<\/p>\n\n\n\n<p><em><strong><span class=\"has-inline-color has-vivid-red-color\">but how to locate the file ? <\/span><\/strong><\/em><\/p>\n\n\n\n<p><strong>PS:<\/strong> <em>Don&#8217;t forget it is a hidden file inside your home directory (you would not be the first to do a\u00a0<code>ls -l<\/code>\u00a0and thinking it is not there).<\/em><\/p>\n\n\n\n<p>Do a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -la ~\/ | more<\/code><\/pre>\n\n\n\n<p>There should be a&nbsp;<code>.bashrc<\/code>&nbsp;on the first page. If not just create it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi ~\/.bashrc<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>PS:<\/strong> <em>To append text to a file in Linux, you can use the <code>echo<\/code> command with the <code>>><\/code> operator to append text to the end of a file. Here is an example:<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"This is the text to append\" >> filename.txt\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The .bashrc file is a hidden configuration file for the Bash shell on Linux and Unix systems. It is typically located in the home directory of the user who is currently logged in. In Debian, the default location for the .bashrc file is \/home\/username\/.bashrc, where &#8220;username&#8221; is the name of the user account. To access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1872,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,316],"tags":[667,666,237,193,170],"_links":{"self":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2598"}],"collection":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2598"}],"version-history":[{"count":1,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2598\/revisions"}],"predecessor-version":[{"id":2599,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2598\/revisions\/2599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/1872"}],"wp:attachment":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}