Skip to main content

Command Palette

Search for a command to run...

🚀 Day 3 of #90DaysOfDevOps Challenge Done! 🚀

Published
•1 min read
🚀 Day 3 of #90DaysOfDevOps Challenge Done! 🚀
T

As a DevOps Engineer, I'm passionate about building and maintaining robust, efficient, and scalable infrastructure to enable seamless software delivery. With a strong foundation in C/C++, Linux, and a toolkit that spans AWS, Jenkins, Docker, Nagios, Kubernetes, YAML, Ansible, Terraform, Bash Scripting, Git, and GitHub, I'm well-equipped to tackle the challenges of modern software development and deployment.

  1. To view what's written in a file.

    • cat filename

  1. To change the access permissions of files.

    • chmod 777 foldername

    • How do I change directory permissions in Linux?

      To change directory permissions in Linux, use the following:

      • chmod +rwx filename to add permissions

        chmod -rwx directoryname to remove permissions.

        chmod +x filename to allow executable permissions.

        chmod -wx filename to take out write and executable permissions.

Note that “r” is for read, “w” is for write, and “x” is for execute.

This only changes the permissions for the owner of the file.

  1. To check which commands you have run till now.

    • history
  1. To remove a directory/ Folder.

    • rm filename

  1. To create a fruits.txt file and to view the content.

    • vim fruits.txt

    • cat fruits.txt

  2. To Show only top three fruits from the file

    • head -3 <filemane>

  3. To Show only bottom three fruits from the file.

    • tail -3 <filemane>

  4. To find the difference between fruits.txt and Colors.txt file.

    • diff fruits.txt colors.txt

More from this blog

Trushid's blog

90 posts

Proficient in DevOps, Cloud & SDLC including analysis, design. Scripting, testing, automation, version control, documentation and support

🚀 Day 3 of #90DaysOfDevOps Challenge Done! 🚀