Skip to content

Commit

Permalink
Merge pull request #29 from kranurag7/main
Browse files Browse the repository at this point in the history
DevOps 2022 (Day1)
  • Loading branch information
saiyam1814 authored Jan 10, 2022
2 parents 1964222 + 332cc87 commit 09039a2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Anurag_Kumar/Linux/basic commands/linuxcommands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Linux Basic Commands


- `man` command will show you a manual page of the command.
- `clear` command will clear your terminal
- `pwd` will show you the current working directory.
- `cd` is used for changing directory
- `echo` to print anything on the terminal
- `whoami` gives you the current user
- `su` switch to the root user
- `sudo bash` switch to the root user
- `sudo` to access the priviliges
- `sudo useradd demo` will create a user with name demo
- `sudo passwd demo` will set a password for the demo user
- `sudo userdel demo` will delete the user demo
- `sudo groupadd techies` will create a group. A group can have multiple users.
- `sudo groupdel techies` will delete the group.
- `touch` to create a file
- `cat` to display the content of the file
- `cp filename destination` to copy the file to destination directory
- `mv` to move the file (same as copy)
- `rm` to remove files
- `mkdir` to create a new directory
- `rmdir` to remove directory
- `grep words filename` to search texts in a particular file
- `sort` will sort the file



## Devops Specific

- `chown` to change the ownership of the file/directory
- `chmod` to change the access permissions of the files/directories
- `0` means no permissions
- `1` means execute permissions
- `2` means write permission
- `4` means read permission
- `7` means read, write and execute all three
- `chmod 777 demo.txt` will give the read, write and execute permission to user,groups and any other users.
- `lsof` list of open files and details associated with them
- `lsof -u username` to see the list of the files opened by a particular user
- `id` is used to find out user and the group names and numeric IDs of the current user or any other user
- `tar -cvf filename source-folder` is used to zip of `.tar` format
- `tar -xvf tarfile` to unzip a file.
-

5 changes: 5 additions & 0 deletions Anurag_Kumar/Progress/001/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Day1

- I started with watching DevOps Roadmap 2022
- Today I learnt and practiced linux basic commands through edX course (Introduction to linux)
- This is going to be a fun journey
7 changes: 7 additions & 0 deletions Anurag_Kumar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Learning Devops

## My Progress

## Stepping out the door

- [x] 1 > [Basic Linux Commands](Progress/001/Readme.md)

0 comments on commit 09039a2

Please sign in to comment.