Useful Linux Commands

Print Friendly

In order to add additional repositories on your Centos you have to run:

rpm -Uvh

This command for example will add the EPEL repository. You can find additional repositories on


Searching for packages with yum:

yum list samba

Display list of updated software:

yum list updates

Apply all updates:

yum update

Update specified package

yum update bind

Check if there is an update for a specified package:

yum list updates bind

Install network setup tool

yum install system-config-network-tui

Find which package contains a specific command

yum provides OR whatprovides ifconfig

Using tcpdump to capture packets

tcpdump -n -i eth0 port 25

List The Open Ports And The Process That Owns Them

netstat -tulpn
This entry was posted in Linux. Bookmark the permalink.

Comments are closed.