Introduction To Linux - V1.0
Introduction To Linux - V1.0
www.dcdium.com
Introduction
to
Linux
INDEX
Download VMware Workstation Player or VMware Workstation Pro: If you haven't already, download and install VMware Workstation Player
(free for personal use) or VMware Workstation Pro (paid version with additional features). You can get it from the VMware website.
Download the Linux ISO: Just like with a physical installation, you'll need to download the ISO file for the Linux distribution you want to install.
Choose the appropriate version for your VMware software (32-bit or 64-bit).
Create a New Virtual Machine: Open VMware Workstation and click on "Create a New Virtual Machine" or use the shortcut. Select "Typical" for
the configuration type.
Select the Linux ISO: When prompted to select the installation method, choose "Installer disc image file (iso)" and browse to the location of the
Linux ISO file you downloaded.
Choose Linux Distribution: VMware will attempt to detect the operating system from the ISO file, but you may need to select it manually if it
doesn't. Choose the appropriate Linux distribution and version.
Configure Virtual Machine Settings: You can customize various settings like the amount of RAM, number of CPU cores, hard disk size, etc. Set
these according to your system's specifications and the requirements of the Linux distribution.
Install Linux: Once the virtual machine is created, power it on. It will boot from the Linux ISO file you provided. Follow the on-screen
instructions to install Linux, just as you would on a physical machine.
Complete the Installation: Follow the Linux installation wizard to set up language, keyboard layout, disk partitioning, user account, etc. This
process may vary slightly depending on the Linux distribution you're installing.
Install VMware Tools (Optional): After installing Linux, it's a good idea to install VMware Tools, which provides better performance and
additional features. Most Linux distributions include VMware Tools in their package repositories. You can install it using your distribution's
package manager.
Reboot: Once everything is set up, reboot the virtual machine to complete the installation.
Accessing the Command Line: Depending on your operating system, you can access the command line in different ways:
Windows: Command Prompt or PowerShell
macOS: Terminal
Linux: Terminal (varies by distribution)
Managing Processes:
ps: List processes
kill: Terminate a process
top (or htop on Linux): Display dynamic real-time view of system
processes
File Permissions
Linux file permissions determine who can read, write, and execute a file. Use the chmod
command to set the appropriate permissions for your files and directories, ensuring the
security and accessibility of your data.
Let's create a simple custom command in Linux. We'll create a command called
greet, which will greet the user with a customizable message.
Open a text editor and create a new file. You can name it anything you like. For
example, greet.sh.
Make the file executable by running the following command in the terminal:
Move the file to a directory that is in your system's PATH. You can move it to /usr/local/bin for system-wide access or to ~/bin for
user-specific access. For example:
Deepak Chopade
EMAIL – [email protected]
Website – www.dcdium.com