thesullster + terminal   35

Performing custom secure file deletion via the OS X Terminal | MacFixIt - CNET Reviews
Drag the files or folders to be deleted to the Terminal window (their full file paths should complete in the window).
osx  terminal  delete  repair  2011 
june 2011 by thesullster
10 examples of using find command in UNIX
How to find all text file which contains word Exception using find command in Unix ?
find . –name *.txt –print | xargs grep “Exception”
unix  terminal  commandline  2011  find 
march 2011 by thesullster
View hidden files and folders in Finder. | mac geekery
As you know, the Finder hides the standard Unix files and folders from you. You can "Go To Folder..." and type in the name of the folder such as /var/log, but that's fiddly and you still don't see the "dot" files, so for any serious session, it's probably easier to drop into Terminal. Except, there's a terminal command that will make all files and folders display in your Finder. defaults write com.apple.finder AppleShowAllFiles -bool true et voila
apple  terminal  discussion  finder  2010 
november 2010 by thesullster
Set IP Address from the Mac Command Line - OS X Daily
The quickest way to set your IP address from the command line is to issue the following command in the Terminal:
sudo ipconfig set en1 DHCP

This will renew your DHCP lease and you will be issued a new IP address from the DHCP server. FYI: en1 is generally wireless/airport, en0 is generally ethernet.

You can check that the IP is set by getting your current IP address from the command line with:
ipconfig getifaddr en1

Doing this before and after will insure you have a new IP.

You can specify an IP address to set via the command line with the following:
sudo ipconfig set en1 INFORM 192.168.0.150

You can also get a new IP address from a DHCP server by bringing down the interface and starting it back up again:
sudo ifconfig en1 down ; sudo ifconfig en1 up
apple  terminal  2010  networking 
september 2010 by thesullster
7 Simple and Useful Command-Line Tips | Nettuts+
perform action on search results:
rm -f `find ./ | grep "\.\_.*"`
linux  2010  terminal 
july 2010 by thesullster
Terminal - Generate random filenames for photos in a folder
for i in *.jpg; do mv $i $RANDOM.jpg; done (in terminal, have all photos moved to a folder first)
apple  terminal  photography  2010 
may 2010 by thesullster
Delete Problem Files With Terminal | Mac Tricks And Tips
sudo rm -R
Note there should be a space at the very end of the command line. Then drag and drop your files from Finder onto the Terminal window.
apple  terminal  2010 
january 2010 by thesullster

Copy this bookmark:



description:


tags: