<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdul Awal Nadim</title>
    <description>The latest articles on DEV Community by Abdul Awal Nadim (@aa_nadim).</description>
    <link>https://dev.to/aa_nadim</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F718747%2Fe99ad7aa-9251-460c-aa0d-dbd9d1acbf24.jpeg</url>
      <title>DEV Community: Abdul Awal Nadim</title>
      <link>https://dev.to/aa_nadim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aa_nadim"/>
    <language>en</language>
    <item>
      <title>Create a Python environment in Linux (Ubuntu) &amp; Windows</title>
      <dc:creator>Abdul Awal Nadim</dc:creator>
      <pubDate>Wed, 20 Nov 2024 09:06:02 +0000</pubDate>
      <link>https://dev.to/aa_nadim/create-a-python-environment-in-linux-ubuntu-windows-397m</link>
      <guid>https://dev.to/aa_nadim/create-a-python-environment-in-linux-ubuntu-windows-397m</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt update
apt install python3.12
python3.12 --version
python3.12 -m pip

pip3.12 -V
python3.12 -m venv --help

sudo apt install python3.12-venv

----create environment Name "python-env-file"---
python3.12 -m venv python-env-file

---------"create requirements.txt file with all dependencies"------
pip freeze &amp;gt; requirements.txt


------------"install all dependencies of requirements.txt"--------
pip3.12 install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;----old----

--------------Update and Upgrade Packages-------------------------
sudo apt update
sudo apt upgrade

--------------------Install Python------------------------
python3 --version
sudo apt install python3

-----------------------Install pip (Python Package Manager)-------------
pip3 --version
sudo apt install python3-pip

python3 -m venv --help
sudo apt install python3-venv

----create environment Name "python-env-file"---
python3 -m venv python-env-file

-----go to project root directory &amp;amp; Activate the Virtual Environment ----
source python-env-file/bin/activate

----------------Install Python Packages-----------------------
pip install package_name

---------"create requirements.txt file with all dependencies"-------
pip freeze &amp;gt; requirements.txt

------------"install all dependencies of requirements.txt"--------
pip install -r requirements.txt

------Deactivate the Virtual Environment------------
deactivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;How do I create a Python environment in Windows==&amp;gt;

python -m venv &amp;lt;environment-folder-name&amp;gt;
&amp;lt;environment-folder-name&amp;gt;\Scripts\activate

Example==&amp;gt;
python -m venv env
env\Scripts\activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Linux Command Line:</title>
      <dc:creator>Abdul Awal Nadim</dc:creator>
      <pubDate>Wed, 13 Sep 2023 06:44:35 +0000</pubDate>
      <link>https://dev.to/aa_nadim/linux-command-line-a-comprehensive-guide-for-me-iik</link>
      <guid>https://dev.to/aa_nadim/linux-command-line-a-comprehensive-guide-for-me-iik</guid>
      <description>&lt;p&gt;Linux is a powerful and widely used open-source operating system renowned for its stability, security, and flexibility. I am learning Linux Commands. If I see any command that is important or most frequently used, then I will add the command and description to the blog.&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;File and Folder Management:&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;ls&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;List Files and Directories:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Listing the contents of your home directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls ~
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;cd&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change Directory:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Moving into the Documents directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd ~/Documents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;touch&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create Empty Files:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Creating a new text file named "example.txt."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;touch example.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;mkdir&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create Directories:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Creating a directory named "projects."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir projects
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;cp &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy Files and Directories:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Copying a file from one directory to another.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cp file.txt /path/to/destination/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;mv&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move/Rename Files and Directories:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Renaming a file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mv oldfile.txt newfile.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;rm &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove Files and Directories:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Deleting a file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm unwantedfile.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;File Permissions:&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;chmod&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change File Permissions:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Making a script executable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod +x myscript.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;chown&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change File Ownership:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Changing the owner of a file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chown newowner:groupname myfile.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;User and Group Management:&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;useradd &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add Users:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Adding a new user named "johndoe."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo useradd johndoe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;userdel&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete Users:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Removing the user "johndoe."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo userdel johndoe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;passwd &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change User Passwords:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Changing the password for the user "johndoe."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo passwd johndoe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;groupadd &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create Groups:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Creating a group named "developers."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo groupadd developers
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;groupdel&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete Groups:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Removing the group "developers."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo groupdel developers
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;usermod&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modify User Attributes:&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;example: Adding a user to the "developers" group.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo usermod -aG developers johndoe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Editor&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano example.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create a Python environment in Linux (Ubuntu)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt update
apt install python3.12
python3.12 --version
python3.12 -m pip

pip3.12 -V
python3.12 -m venv --help
sudo apt install python3.12-venv
----create environment Name "python-env-file"---
python3.12 -m venv python-env-file
------------"install all dependencies of requirements.txt"--------
pip3.12 install -r requirements.txt

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>linux</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
