0% found this document useful (0 votes)
5 views3 pages

Essential Linux Shell Scripting Guide

The document provides resources and links for learning basic shell scripting and Linux commands, including troubleshooting common issues. It lists various problems and questions related to shell scripting, such as file management, memory and CPU usage checks, and command usage. Additionally, it outlines troubleshooting scenarios for printer issues, file transfers, and website performance problems.

Uploaded by

Hs Ipsita
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Essential Linux Shell Scripting Guide

The document provides resources and links for learning basic shell scripting and Linux commands, including troubleshooting common issues. It lists various problems and questions related to shell scripting, such as file management, memory and CPU usage checks, and command usage. Additionally, it outlines troubleshooting scenarios for printer issues, file transfers, and website performance problems.

Uploaded by

Hs Ipsita
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Basic Shell Scripting

● [Link]
● [Link]
● Some problems :
○ [Link]
○ [Link]
○ [Link]
○ [Link]
○ [Link]
bonacci_8.html?q=shell+script
○ [Link]
[Link]?q=shell+script
○ [Link]
[Link]?q=shell+script
○ [Link]
[Link]
○ [Link]

Linux Commands
● [Link]
know/
● Explore more on : ​awk, grep, sed, chmod , ssh, scp
● Few popular commands
○ [Link]
ntax-to-not-grep-through-certain-files?rq=1
○ [Link]
nes-in-a-file
○ [Link]
e-into-smaller-files-with-equal-number-of-lines?rq=1
○ [Link]
e-in-bash?noredirect=1&lq=1
○ [Link]
rrounding-lines?rq=1
○ [Link]
line-pattern-in-a-file?noredirect=1&lq=1
○ [Link]
ntax-to-not-grep-through-certain-files?noredirect=1&lq=1
○ [Link]
[Link]?q=shell+script
○ [Link]

Few basic questions


● Remove a file
● Removing a directory/file forcefully
● Finding out the empty files in a directory
● List out all files in directory
● finding occurrences of a keyword in a file
● Count of lines in a file,
● How will you check the memory usage
● How will you check CPU usage
● How will you check the process running
● How will you check the disk space
● Get the number of occurence of “failure” in a file
● Find the Line number of match
● Replace failure with error using sed
● Print a particular line using sed
● I have a [Link] with hostnames and [Link] with file names. Write a script to
transfer all the files listed in [Link] to the hosts mentioned in [Link].

● How would you use AWK to extract the sixth field from a line of text containing
colon (:) delimited fields that is stored in a variable called passwd_line?
● Difference between ls and ls -la.
● Find .log files and remove them.

Troubleshooting
● Troubleshoot Issue with printer while trying to print out a document
● Troubleshoot the file transfer issue between two servers.
● Script is not executing. What could be the issues?
● User is trying to access website. But the page is slow, keeps loading and finally
errored out Cannot Load. How will you troubleshoot the slowness of the website?
● User hit the download button in kindle, and the money got debited but the book
didn’t get download.
● Prime video didn’t start from where it was left, How would you troubleshot.

You might also like