Dharmavir - 12323255 - Blind Short 1M
Dharmavir - 12323255 - Blind Short 1M
Dharmavir - 12323255 - Blind Short 1M
Roll-no =70
12323258
Q2.
### Prerequisites:
1. **Install Git** on your machine. If you haven't installed Git yet, you can download it from [here](https://git-scm.com/downloads).
2. **Create a GitHub account** if you don't already have one.
3. **Create a repository on GitHub**:
- Go to GitHub.
- Click on the **+** button at the top-right corner and select **New repository**.
- Name your repository (e.g., `my-project`).
- Choose the visibility (Public or Private).
- **Don't** initialize the repository with a README (since you’ll add your own files).
Example `.gitignore`:
```bash
# Ignore node_modules folder
node_modules/
- **Push to a different branch**: If you prefer working on a separate branch (e.g., `main` or `development`), you can create and
push to a different branch:
```bash
git checkout -b main # Creates and switches to 'main' branch
git push -u origin main # Pushes the 'main' branch to GitHub
```
Now your project is uploaded to GitHub, and you can continue pushing updates or collaborating with others!
Q3
Q3.
Step1
The ls command in Linux is used to list the contents of a directory. When you run ls in the terminal, it displays the files
and directories in the current working directory.
Step2.
Mkdir
In Linux, mkdir stands for "make directory." It is a command used to create new directories (or folders) in the file
system.
Step 3.
Touch is a command used primarily to create empty files or update the timestamps of existing files (access and
modification times). It is commonly used in scripting and file management.
Step 4.
In Linux, the echo command is used to display a line of text or a string on the terminal. It's a simple but frequently used
command for printing output, often in shell scripts.