Categories
Linux UNIX

ZIP & UNZIP Files & Directories

I thought I’d create a quick reference of useful zip and unzip commands for those of you that aren’t too familiar doing it via command line. Definition: zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS. ZIP a File zip […]

Categories
Linux UNIX

chmod

I thought I’d share my notes on chmod for those of you that are just starting out. Enjoy! Categories Break the permissions up into 3 categories: User Group Other Each category can be given 3 types of permissions: Read (4) Write (2) Execute (1) To give the proper permissions, add up the total numbers within […]

Categories
Linux UNIX

lsof – List Of Open Files

Files opened by processes running on your system. # lsof List all opened internet sockets. # lsof -i List all opened internet sockets on port 80. # lsof -i :80 List all udp or tcp connections. # lsof -i udp # lsof -i tcp # lsof -i tcp:80 Files open by PID. # lsof -p […]

Categories
Linux MAC UNIX

Linux: alias Command

Most of us use the same commands over and over again. The alias command can help simplify your life when it comes to typing out the same long drown out commands. Think of it as a shortcut command. Lets say that you always type hostname;uptime;date. You can create an alias where it will run the […]