Posts

Showing posts from November, 2021

DevOps Project Contest.

  Trie Tree Technologies [DevOps Factory] DevOps Project Contest   Rules: 1)    Please Register your name in Telegram Channel. 2)    Contest duration is 7 Days. 3)    Start Date is 13 th November 2021 to 20 th November 2021. 4)    Design your Architecture and send it on your first day i.e. 13 th Nov. 5)    Project should include CI/CD Tools. 6)    Project should use any 2 tools from Terraform, Ansible and Kubernetes. 7)    Use CI Tools like Jenkins, GitLab, CircleCI or any of your choice. 8)    Place all your code in GitHub Public repository. 9)    Record Your session using freecam link given below and send in GoogleDrive or you can Share your screen and explain your project. https://www.freescreenrecording.com/ 10)  Projects will be reviewed in a week and winners will be declared.     11) All the participants will get feedback on what to i...

Timed Shutdowns, and Rebooting - Using command "shutdown"

  If we want to use timed shutdowns, for example, 5 minutes from now or at a specific time, and warn all logged-in users. Or you want to just shut down now with no frills.   Shut down immediately, with no notification to other logged-in users: $ shutdown -h now Shut down   in 10 minutes with notifications: $ shutdown -h +10 Shutdown scheduled for Tue 2021-11-09 11:04:43 IST, use 'shutdown -c' to cancel. Cancel the   shutdown: $ shutdown -c Create your own message: $ shutdown -h +6 "Time to watch trie Tree Technologies Youtube Channel" Rather than specifying minutes to shutdown, you may set a shutdown time in 24-hour hh:mm format. The following example shuts down the system at 11:20 P.M.: $ shutdown -h 23:20 Reboot: $ shutdown -r Halt the   system without powering off: $ shutdown -H  

ShutDown Linux with systemctl - Interview Question

 Use systemctl   commands to shut down and reboot your system.   Halt the   system and power off the machine: $ systemctl poweroff Halt the system   and power off the machine: $ systemctl shutdown Reboot your machine: $ systemctl reboot Halt the system without   powering off the machine: $ systemctl halt  

How To Rebuild GRUB Configuration file

Whenever We change our GRUB configuration, we need to rebuild it:   The command to rebuild your GRUB configuration varies. On Fedora   and open SUSE, use this command: $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg For Ubuntu, use: $ sudo grub-mkconfig -o /boot/grub/grub.cfg Ubuntu Linux also has a script that runs   grub-mkconfig ,   update-grub : $ sudo update-grub   Remember to always verify your correct filenames and paths when you edit your GRUB configuration because they vary on the different platforms of Linux.

GIT Command Line

 The Git Command Line: Git is simple to use, type git. Without any arguments, Git lists options and the most common subcommands: $ git git [--version] [--exec-path[=GIT_EXEC_PATH]]     [-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR]     [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS] The most commonly used git commands are:    add        Add file contents to the index    bisect     Find the change that introduced a bug by binary search    branch     List, create, or delete branches    checkout   Checkout and switch to a branch    clone      Clone a repository into a new directory    commit     Record changes to the repository    diff       Show changes between commits, the commit and working trees, etc.  ...

Difference Between Git and GitHub

  Git and GitHub are two completely different things. Let me quickly explain what is Git and what is GitHub and how they are actually related. Most popular definition of Git is following: Git is distributed version-control system, but this definition is actually too complicated, especially for beginners. Let me explain you what is Git in more simple words. Git allows you to track files in any folder called repository, and Git preserves history of all changes that you make with files in this repository. But how Git does that? How it stores all changes of all files in the folder? Under the hood, Git has its own, let's say, file structure, and every file is stored in a separate document, and every file has special hash, and that's why we can say that Git is simply persistent hash map and it stores keys and values; nothing else. Key is a hash and value is content of every file. Another important notice regarding Git, you can use it locally on your computer, even without internet an...