Categories
Tech

Common Linux Commands

This will be an on-going post that I will use to keep track of my most commonly used commands.
Tested on Centos 6.3.

Linux Misc

List users

cat /etc/passwd

List groups

cat /etc/group

View free memory

free -m

View disk space usage

df -h

Git

Init new remote repo

git init –bare

Clone existing repo using HTTP

git clone http://repourl.com/path/to/repo

Clone existing repo using SSH on non-standard port

git clone ssh://user@repourl.com:8888/path/to/repo

Xen using LibVirt

List running Virtual Machines on Node

virsh list

List all Virtual Machines on Node

virsh list –all

Leave a Reply

Your email address will not be published. Required fields are marked *