• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Login | Register | Support | Tel: (720) 295-7690 Web Development dev2host on Facebook
Web Design based in Denver

Web Design and Web Hosting Based in Denver

Web Development and Web Hosting

  • Home
  • Web Design
    • Web Design
    • SEO & Marketing
    • Web Design FAQ
    • Testimonials
    • Specials
  • Maintenance
    • WordPress Plans
    • e-Commerce Plans
  • Web Hosting
    • Web Hosting Overview
    • Essential Hosting
    • Business Hosting
    • Enterprise Hosting
    • MEGA Web Hosting
    • Custom Web Hosting
    • Testimonials
    • Terms of Service
  • Domain Names
  • News & Blogs
  • Contact Us
    • Tel: (800) 790-6440
  • Login
    • Register
    • Support

Useful SSH Commands

dev2host usefull SSH commands

September 24, 2020 by dev2host

Here are some common SSH commands that our server administrators find they use quite often. Hopefully these SSH commands will be useful for others too.

Some Useful SSH Commands

SSH Command Description SSH Command
Delete a directory with all content and subdirectories: rm -fR /tmp/hacks
Displays everything in the current directory: ls
Displays all files, including hidden any hidden files: ls -a
Displays all files, along with the size and timestamp: ls -l
Uncompresses tar.gz files: tar -zxpf <file.tar.gz>
Uncompresses .gz files: gunzip <file>
Copies a file to a new file: cp <file>
Moves a file to a new file, or renames it: mv <file>
Create a new directory: mkdir <dir>
Deletes a directory: rmdir <dir>
Deletes a file: rm <file>
Move into a directory: cd <dir>
Move to a lower directory: cd ..
Move to your home directory: cd ~
Moves to the previous directory: cd –
Displays the current directory that you are in: pwd
Edit a file: pico <file>
Displays the hard drive status: df
Displays the uptime of a server: uptime
Displays others connected to the server: who
Displays previous logins: last
Displays processes running: ps -x
Displays all processes running: ps -a
Displays running processes, with CPU/Memory usage: ps -ux
Kills a process: kill <pid>
Kills all running process of the same type: killall <program>
Process list, 1 minute and 5 minute average load every 10 minutes since midnight server time: sar -q
Useful to see who is connected to your server: netstat -n -p
Edit the crontab file and see what is set to run in there: crontab -e
To edit a users cron jobs: crontab -u username -e
Gives you the last 10 lines of a file. Can change the # to whatever you want: tail -10 <filename>
Restart cPanel services: /etc/init.d/cpanel restart

Category iconServer Administration

Primary Sidebar

Web Hosting Support

Call us: (800) 790-6440

Enquiry Form

News & Blogs

  • The Client-First Web Design Company
  • Web Design Planning
  • Top 9 Must-Have WordPress Plugins
  • Competitive Website Design Services
  • 9 Reasons Why Small Business Owners Need Professional Website Services
Web Development and Hosting reviews by dev2host

Home Page

Web Design

Web Hosting

Domain Names

Copyright © 2012-2021 dev2host llc All rights reserved. Terms Of Service
8547 E ARAPAHOE RD UNIT J #264, GREENWOOD VILLAGE CO 80112-1430

Call us: (800) 790-6440