Posts

Showing posts from September, 2020

Linux-Handson Problem (DU)

Image
  Program: First copy below in any file and name it a.sh , after that give execute permission chmod +x a.sh. Run it like ./a.sh. Code : #!/bin/sh Green='\033[0;32m' while : do echo "${Green}WELCOME TO LINUX KURIOSITY" echo "${Green}LEARN DU COMMAND IN INTERACTIVE WAY" echo "${Green}Press 0 to learn about du command" echo "${Green}Press 1 to learn about -a option" echo "${Green}Press 2 to learn about -h option" echo "${Green}Press 3 to learn about -c option" echo "${Green}Press 4 to learn about -L option" echo "${Green}Press 5 to learn about -s option" echo "${Green}Press 6 to learn about --time option" echo "${Green}Press 7 to learn about -x option" echo "${Green}Press 8 to exit" echo "Please enter the option" read option case $option in 0) echo "#########START#######" echo "Summarize disk usag...

Real Time Linux Hands on Problems

Image
  cp a. It is a command which is used to copy the files or directories from one place to another place. Example: ~$ cp Topics.odt /home/anil/Downloads/ ~$ Real Time Problem: Suppose you are working in a company and your manager ask you to copy the file in one more location. At this point of time above example help you. b. We can preserve the permission of the files or directories while copying from source to destination. Example: ~$ cp -dR --preserve=all Text.txt /home/anil/Downloads Real Time Problem: Suppose you are working in a company and your manager ask you to copy the file in to another location by preserving the ownership and permission of the file. At this point of time above example help you. For more problems please click on below link : https://www.amazon.com/dp/B07LDF8Y3B https://www.amazon.com/dp/B07Q3263Q4

Linux-Command Hands-On (DF)

Image
  OBJECTIVE: Aim of this practical is to show you all the possible cases of df command in a real time situation.This kind of practical make you expertise in solving big IT problem in minimum effort. 1. Suppose you have list of multiple servers where you have want to check all the local filesystem.How will you overcome with this problem ? Solution: #!/bin/bash for i in $(cat hostname.txt) do ssh $i df -a done For more problems Please click on below link  https://payhip.com/b/247HD

Google Cloud Network

Image
 1. What is GCP ? Ans: Google Cloud Platform (GCP)  has one of the largest and fastest networks in the world. GCP resources are treated as  services  instead of hardware. For example,  Persistent Disk  is not a physical device, but is a service used over a network. 2. What are the three types of networks in GCP ? Ans: There are  three   types of networks in GCP: Default Auto Custom 3. What is the maximum number of networks that can be created per project ? Ans: Projects   consist of  Objects   and  Services   which are billed. Projects contain networks, and the maximum number of networks that can be created per project is  five . Note: All infrastructure resources in GCP are organized under  Projects . Project is defined as a key organizer for all the resources. If a network type is not specified, by default GCP considers the  Default   network. ...