Skip to content

Instantly share code, notes, and snippets.

@sulram
Last active December 20, 2015 14:29
Show Gist options
  • Save sulram/6147344 to your computer and use it in GitHub Desktop.
Save sulram/6147344 to your computer and use it in GitHub Desktop.

FILE SYSTEM

size of directories

du -sh webapps/*

remove invisible files

find ./ -name ".svn" | xargs rm -Rf
find ./ -name ".DS_Store" | xargs rm -Rf

ARCHIVE

tar -cvf (compress, verbose, to file)

tar -cvf archive.tar .

untar -xvf (expand, verbose, to file)

untar -xvf archive.tar .

zip -r (recursive)

zip -r archive.zip directory

STATUS

top process commands (hiperorganicos)

ps aux | grep node
top
netstat -putan
byobu
@sulram
Copy link
Author

sulram commented Aug 13, 2015

hide and unhide files

chflags hidden /path/to/file-or-folder
chflags nohidden /path/to/file-or-folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment