Mastering the Essentials: Important top 50 Linux Commands (Part 2) Explained and Demonstrated

Linux is basically a Unix-like Operating system, So Commands are important to run the terminal in Linux. Windows uses a command prompt like ...

Linux is basically a Unix-like Operating system, So Commands are important to run the terminal in Linux. Windows uses a command prompt like that on Linux it is called a terminal or shell or Bash.

The Terminal or Shell is used to run every command. So some of the Basic commands need to know before running in the terminal. 

If you are New to Linux Please checkout my Blog Mastering the Essentials: Basic Linux Commands (Part 1)  after that you can check this blog for continuation

35. Grep command
    Grep command is used to search the particular word in the entire files and directories.
Syntax: grep -r “word”
Command: grep -r “linux” 
                    grep -r “linux” > search.txt – this command is used to append the search result to another file.



36. Find command 
    To find a particular Directory(or)folder name in the Linux system
Syntax: find . -name “foldername” 

    To find a particular file in the Linux system
Syntax: find . -name “filename”

    To Find a particular .extension file 
Syntax: find . -name “*.txt”  

Command: find /home/ec2-user -name "test.txt"

find / -type d -iname "computer"

find / -type d -name "computer.*" - > We can use wild cards also
 

37. sed Command
     The sed command used to find and replace the string in the particular file. 

command: sed 's/unix/linux/g' test.txt
                  sed -i 's/unix/linux/g' test.txt

The above command "unix" is a word already placed in the test.txt file, linux is the word need to replace for the word "linux" 
if you not passing the "i" option the command it will find the word but will not replace, instead it will show you replacing lines with replaced word.

In linux or windows, we need to know some basic networking commands, 
38. ifconfig and ip config:
        It  shows the route and network interfaces information.
      ifconfig -- Used in Linux (For redhat os –  ip addr show eth0)
      ip config -- Used in windows 


39. Ping- To check connectivity between two nodes.
  Ping command is a common command for linux and windows to check thePing  particular server or network connectivity with a local machine.
    Command: ping google.com

40.nslookup - Find DNS-related query.
    For red hat need to install the nslookup 
command: sudo yum install bind-utils
    nslookup domainname
Ex: 
nslookup google.com
nslookup facebook.com
nslookup test.techiev.com
    

41.telnet -- checking the tcp and udp port connectivity

syntax: telnet domain name or ipname portnumber

Ex: 
telnet techiev.com 22 (or) 26.16.26.45 22


In linux we need to use the compress and decompression( zip and tar), learn Tar and zip check the blog 


----------------------------------------!!!! Happy Learning with Techiev !!!!!!!!----------------------------------
-------------------------Subscribe our Youtube Channel by clicking thebelow link---------------------- ----------------------------!!https://www.youtube.com/@techieview729!!---------------------



 

 











 


Name

AWS,19,Devops,30,linux,11,
ltr
item
Techie View: Mastering the Essentials: Important top 50 Linux Commands (Part 2) Explained and Demonstrated
Mastering the Essentials: Important top 50 Linux Commands (Part 2) Explained and Demonstrated
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxrPIa4oy6VRO2Tj3uulIVbM78uqwW8Sl9J6i54_9_LOhVU-2dhcxOujDiCzW79QU4Fp88QXkntmVSCNsSwrJ36yEfR9gdkMAuMh9OTsAqvytFOhFH6V3i5VNkPnpkizRccaK3rhmb6hfa1JAEdSihEbe-9YfJV2LItXTuprkXoiGYBFWWZ02GoX-p_nf/w640-h310/linux.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxrPIa4oy6VRO2Tj3uulIVbM78uqwW8Sl9J6i54_9_LOhVU-2dhcxOujDiCzW79QU4Fp88QXkntmVSCNsSwrJ36yEfR9gdkMAuMh9OTsAqvytFOhFH6V3i5VNkPnpkizRccaK3rhmb6hfa1JAEdSihEbe-9YfJV2LItXTuprkXoiGYBFWWZ02GoX-p_nf/s72-w640-c-h310/linux.jpg
Techie View
https://www.techiev.com/2024/08/basic-linux-commands-part-2.html
https://www.techiev.com/
https://www.techiev.com/
https://www.techiev.com/2024/08/basic-linux-commands-part-2.html
true
7013663511659419322
UTF-8
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy