Tagged Questions
1
vote
2answers
107 views
A bunch of files have 777 permissions
I have been learning Python and Bash scripting, and I up to now I have given my scripts 777 permissions. Having learned more about how to set permissions, and knowing this is a bad idea, I ran the ...
2
votes
2answers
157 views
Find files given an exact filename with mdfind
Is there a way to ask mdfind to search for filenames with an exact filename ?
At some point in a pipe I have this:
(filenames are produced here) | while read f; do mdfind -name "$f" | grep -E "/$f";
...
2
votes
1answer
165 views
how to remove quarantine from file permissions in os x
I downloaded a .pem file and my Mac OS X (10.8.2) added an @ sign at the end of the file permissions. This is causing file permission issues. I can't seem to remove the quarantine flag. I even tried ...
1
vote
0answers
109 views
Editing images with sips doesn't work without being executed directly from Terminal? [closed]
I made a cheesy application with a bash script using CocoaDialog, and within this application I need to modify the size of a photo. So, I researched a little and found the sips command; and it works ...
2
votes
2answers
197 views
Is there a way to undo the 'cpp' command in terminal?
I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder.
I realized afterward that I should have used cp, but now my Python script is ...
1
vote
3answers
1k views
Opening files from Ubuntu server over ssh from Mac Terminal
So I SSH into a Ubuntu server and try to open the file in a Mac program (Coda) and get an error:
Couldn't get a file descriptor referring to the console
Using the command
open myfile.html
This ...
3
votes
3answers
701 views
In Mac OS X Snow Leopard, how can one file's permissions be matched to another?
I need to make the permissions of a file exactly match the permissions of another file in OS X 10.6.
I don't see 'getfacl' or 'setfacl' as suggested in some other posts for Linux. And, it doesn't ...
3
votes
1answer
142 views
Restricting access to files on an external drive
I was wondering how to restrict access to a specific drive in Unix on the Mac. I was thinking to do this in Terminal where I create a file like this mkfile 6k secure_access. And where secure_access ...
4
votes
2answers
373 views
Tell if a folder/file is hidden in Mac OS X
I know you can set or unset the hidden flag of a folder/file by doing chflags hidden foo.txt and chflags nohidden foo.txt.
But is there anyway of telling whether the folder/file is currently hidden ...