Commands by tpaisndbgps (1)


Share Your Commands

Check These Out

draw mesh

list block devices

Move a folder and merge it with another folder
This will move a folder and merge it with another folder which may contain duplicates. Technically it's just creating hardlinks of everything in the folder, and after it's done, delete the source (with rm -r source/ ) to complete the move. This is much faster than, for example, using rsync to merge folders which would actually copy the entire contents and so for a lot of files would take much longer. This uses macutils gcp port of cp so it can be used on osx/MacOS. If using in linux or some unix where cp includes the ability to create links with -l you can just use cp instead of gcp.

Go to the next sibling directory in alphabetical order
Sometimes you have to browse your way through a lot of sub-directories. This command cd to the next sub-directory in alphabetical order. For example, if you have the directories "lectures/01-intro", "lectures/02-basic", "lectures/03-advanced" and so on, and your PWD is "02-basic", it jumps to "03-advanced".

List of macros defined by gcc
Lists all macros and their values defined by gcc.

check open ports without netstat or lsof

list block devices

Compare directories via diff

list all file extensions in a directory

determine if tcp port is open
@putnamhill, no need if statement in that case. && is a AND and || is a OR

Stay in the loop…

Follow the Tweets.



Subscribe to the feeds.


Subscribe to the feed for: