Web Niraj
  • Facebook
  • Flickr
  • Github
  • Linkedin
  • Twitter
  • YouTube
Online portfolio, code examples and developer blog
  • About
  • Contact
  • Portfolio
  • WordPress
Search the site...
  • Home
  • Blog
  • Useful Linux Commands

Useful Linux Commands

0

Managing a server using SSH and Command Line Access over the past few years has taught me a lot. It’s sometimes important to check how a server is doing in terms of load or you may simply want to check hard disk usage. Here are some commands I’ve frequently used:

Listing the number of files in a directory:

ls | wc -l

Display the size of a directory in readable format (recursively):

du -h

Display the total size of a directory (can take some time for large directories):

du -h | tail -n 1

Checking hard disk usage:

df -h -T

Check server load, memory usage and running processes:

top

Checking server load and uptime:

uptime

Linux, Server, Sysadmin

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

StackExchange / StackOverflow

profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

PSN Profile

Tags

Amazon Web Services Android Android 4.4 KitKat Android 5.0 Lollipop Apache API Application Backup Bug Command Line Cordova Example Facebook Facebook Graph API Facebook PHP SDK 4.0 Facebook Social Plugins Fan Page Flash Geolocation Google Nexus 5 Google Nexus One Hacking HTML5 Image Manipulation iOS iPhone JavaScript jQuery Laravel 5 Linux NodeJS Parse PDF PHP Plugin Portfolio Review Security Server SSH SSL Sysadmin Tutorial WordPress WordPress Plugins
© 2011-2022 Niraj Shah
  • Blog
  • Portfolio
  • WordPress
  • About Me
  • Contact Me
  • Privacy Policy
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Privacy Policy