-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from kranurag7/main
DevOps 2022 (Day1)
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |