How Do you solve it.? Write Shell Script to accomplish this task. This command does not work as expected due to directory modified date for SAT, SUN and MON moved directories same for all as Monday date. Problem Statement: I was trying to use find /path/ -type d -mtime +2 -print0 | xargs -r0 rm. How do you do it using any scripting methods. Question: I would like to delete directories older than two days from /fullbackup/archive path. Scenario: Everyday from Monday to Friday one directory will be created under /fullbackup/dailybackup/YYYY-MM-DD and it will move backup to its parent directory everyday midnight /fullbackup/archive/, However Saturday, Sunday and Monday directories will move to /fullbackup/archive path every monday evening. Write Your Own Method of Script for below Scenario Executing Multiple scripts from single script.Here Document to write paragraphs of text.Checking shell script errors and improvements using site.Trouble shooting debugging shell scripts.Shifting parameters using shift command.Constant variables, Local & Global variables and Special variables.Environment Variables, system variables and user defined variables.Quotes single, double and reverse - Know difference between each.what is shell scripting and it's advantages.difference between scripting and programming.Changing files and directory permissions.Connect and Manage remote machine using SSH.Merge multiple files using paste command.Introduction to Graphical user interface.Search for files and directories using find and locate commands.w, who, hostnamem hostnamectl and uname commands.Getting Help From Command Line user Interface.Disk utilities like fdisk, df and du commands.If you do not learn below commands also fine but i personally recommend you to learn commands first.Īlias and unalias, arch, arp, at, awk, bc, blkid, cal, cat, cd, chage, chattr, chgrp, chmod, chown, cp, cpio, crontab, curl, cut, date, dd, df, diff, dig, dnf, du, expr, fdisk, file, find, firewall-cmd, free, ftp, grep, head, history, hostname, id, ifconfig, iostat, ip, kill, last, lessandmore, ln, locate, lpstatandlpadmin, ls, lsof, lspci, mail, man, mdadm, mkdirandrmdir, mkisofs, mount, mutt, mv, nano, netstat, nice, renice, nslookup, passwd, pam_tally2, paste, ping, perloneliner, pkill, ps, pwd, reboot, poweroff, rm, rpm, rsync, scp, screen, sed, sort, ss, ssh, sysctl, tail, tar, tcpdump, top, touch, tr, traceroute, umask, uname, uniq, uptime, useradd, vi, vmstat, w, who, watch, wc, wget, ypcat, yppasswd, yum, zip, sarĪfter that start learning shell scripting using below topics I will create one file for one topic with code.īefore jumping into the Shell scripting below are commands you have to practice for better understanding and familiar with Linux command line interface. Shell Scripting for Amazon Web Services to Manage it's resourcesĪ complete begineers guide to learn shell scripting from scratch which includes Videos, Practice scenarios and project idea. Keep in touch with for any kind of technical questions
0 Comments
Leave a Reply. |