Skip to main content

Command Palette

Search for a command to run...

DevOps90DaysChallenge

Updated
β€’3 min read
DevOps90DaysChallenge
S

I am a software engineer (Cloud /DevOps Enthusiast. Talks about DevOps | AWS | Docker | Linux | Jenkins | Git | Terraform | Technical Blogger).I have a strong ability to troubleshoot and resolve issues, and are consistently motivated to expand the knowledge and skills through exploration of new technologies.

Hi πŸ‘‹there,

Now we are on the Day 11 task

(Linux and Github Cheatsheet)

Checkout the below link for Day 11 task:

https://github.com/LondheShubham153/90DaysOfDevOps/blob/master/2023/day12/tasks.md

Here is a basic Git cheat sheet for common Git commands:

  1. Initialize a new Git repository: git init

  2. Check the status of your repository: git status

  3. Add changes to the staging area: git add <file> or git add. (to add all changes)

  4. Commit changes: git commit -m "Commit message"

  5. Push changes to a remote repository: git push <remote> <branch>

  6. Pull changes from a remote repository: git pull <remote> <branch>

  7. Create a new branch: git branch <branch name>

  8. Switch to a different branch: git checkout <branch name>

  9. Merge branches: git merge <branch to merge>

  10. View commit history: git log

  11. Undo local changes: git checkout -- <file>

  12. Revert to a previous commit: git revert <commit hash>

  13. Clone a remote repository: git clone <repository URL>

  14. Reset to a specific commit: git reset <commit hash>

  15. Delete a branch: git branch -d <branch name>

This is a basic list of Git commands.

Linux Cheat Sheet

Here is a basic Linux cheatsheet for common Linux commands:

  1. ls – The most frequently used command in Linux to list directories

  2. pwd – Print working directory command in Linux

  3. cd – Linux command to navigate through directories

  4. mkdir – Command used to create directories in Linux

  5. mv – Move or rename files in Linux

  6. cp – Similar usage as mv but for copying files in Linux

  7. rm – Delete files or directories

  8. touch – Create blank/empty files

  9. ln – Create symbolic links (shortcuts) to other files

  10. cat – Display file contents on the terminal

  11. clear – Clear the terminal display

  12. echo – Print any text that follows the command

  13. less – Linux command to display paged outputs in the terminal

  14. man – Access manual pages for all Linux commands

  15. name – Linux command to get basic information about the OS

  16. whoami – Get the active username

  17. tar – Command to extract and compress files in Linux

  18. grep – Search for a string within an output.

  19. head – Return the specified number of lines from the top

  20. tail – Return the specified number of lines from the bottom

  21. diff – Find the difference between two files

  22. CMP – Allows you to check if two files are identical

  23. comm – Combines the functionality of diff and cmp

  24. sort – Linux command to sort the content of a file while outputting

  25. export – Export environment variables in Linux.

  26. zip – Zip files in Linux

  27. unzip – Unzip files in Linux

  28. ssh – Secure Shell command in Linux

  29. service – Linux command to start and stop services

  30. ps – Display active processes

  31. kill and kill all – Kill active processes by process ID or name

  32. df – Display disk filesystem information

  33. mount – Mount file systems in Linux

  34. chmod – command to change file permissions

  35. chown – Command for granting ownership of files or folders

  36. ifconfig – Display network interfaces and IP addresses

  37. traceroute – Trace all the network hops to reach the destination

  38. wget – Direct download files from the internet

  39. apt, Pacman, yum, rpm – Package managers depending on the distro

  40. sudo – Command to escalate privileges in Linux

  41. ls -l - list

    This is a basic list of linux commands.

  • Please, feel free to drop any questions in the comments below. I would be happy to answer them.

  • If you find this post helpfulπŸ˜ŠπŸ™‚, please follow and click the heart❀❀ button below to show your support.

  • _ Thank you for reading

  • _sandhya kumari