netstat -rn
Home »
Linux Useful Commands
» To display the kernel routing table #netstat
To display the kernel routing table #netstat
Related Posts:
Find your MySQL configuration file #mysql #grep #file We often have to administer a system that has been set up by someone else. In such a situation, it's difficult to find the correct configuration files for different applications. Here is a tip to find the correct configurat… Read More
Comment out hashes in large configuration files Here is a small tip for system administrators, who need to tackle large configuration files, which include lots of commented lines (marked by #). With this tip you can remove all those hashes and provide only an uncommented… Read More
View the contents of tar and rpm files #tar #rpm Here are two simple commands to show you the contents of the tar and rpm files. 1. To view the content of a tar file, issue the following command: #tar -tvf /path/to/file.tar 2. To view the content of an rpm file, use … Read More
Find your OS and distribution name #terminal #system configuration Here is a tip that will let you know the name of the OS, along with other details: [root@vl-pun-blg-qa27]# lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: … Read More
Replacing '\n' with 'space' in each line of a file #replace #awk You can use the awk statement given below to remove the '\n' from each line and replace it with a blank space: awk '$1=$1' ORS=' ' /etc/passwd … Read More
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.