Linux for DevOps

To move forward, just think of the next step.
So here is another blog, to get you started on the basics of Linux which in turn could kick off your journey to becoming a DevOps engineer.
Check your present working directory.
That's so much easier in Windows, kick that thought out of your mind.
Running the
pwdcommand will show you your present working directory.$ pwdOutput: /x/y/z
List all the files or directories including hidden files.
ls command is used to list the files in a directory.
Combine ls with -a to list all files in the directory including hidden ones.
$ ls -a
Output: . .. .file.txt
In the above example, file.txt is a hidden file. A hidden file is always has a dot in the prefix of it's name.
Can you now create a hidden file? Comment and let me know.
Create a nested directory A/B/C/D/E
sudo mkdir -p A/B/C/D/E
Use mkdir with -p option to create nested directories in Linux.
With a single command, you can create nested directories.
I hope you learned something, reach out to me on LinkedIn or leave a comment on the article if you need any help or feedback is also appreciated.
Happy Learning!!



