IndianWebPortal.com

Something Different In Linux

Home » Linux Commands » One Line linux Commands

One Line linux Commands

Posted by Rishikesh Vispute Categories: Linux Commands

One Line linux Commands:—-

To find a list of all Open Ports
$ netstat -tulpn

Linux Disk Utilization Command
$ vmstat -D

Which Shell are you in?
$ ps -p $$

Number of http connections from an IP
$ netstat -nut | awk '{print $5}' | cut -d : -f1| sort | uniq -c | sort -n

To find current working directory of a PID
$ pwdx [pid]

To format a drive to ext3
$ mkfs.ext3 [device_name]

To know when the server was last rebooted
$ last reboot

To know when the server was last Shutdown
$ last -x shutdown

Removing Semaphores for Apache
$ ipcs -s | grep nobody | perl -e 'while (<stdin>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...