OS X :: How To Delete A File Using Terminal
Nov 6, 2008I need to delete a file that I cannot access via Finder. Is there a command that I can use in terminal to delete it? I cannot access the folder the file exists in via Finder..
View 12 RepliesI need to delete a file that I cannot access via Finder. Is there a command that I can use in terminal to delete it? I cannot access the folder the file exists in via Finder..
View 12 RepliesI need some help to walk through adding an admin account and then deleting it after a software install on my kid's mac. I can get into single user mode, but I need some explicit instructions to add an admin account (for the purposes of installing a keylogger) then deleting the account without affecting his computer. thanks for sending me a message if you can help me with some of the commands to do this. There are a lot of instructions on the commands, but I don't want to mess it up.
View 7 Replies View RelatedI think its the move to Unix-framework that has changed my opinion of the mac OS) and have just bought a MyBookWorld network drive to dump all my media on which is currently on my macbook unibody. Ok, so I know its a pretty crappy product... copying is agonizingly sloooow and is always falling over. I have been trying to enter terminal and use the cp command to copy, hoping I can set it off before sodding off on a long weekend and returning to find the job done. However, I have not managed it yet.
I cannot get the syntax right when trying to copy to the shared MyBookWorld drive. I have no idea about how to locate directories. In windows I could say, for example, C:/users/robsa/my docs/media/tv/the simpsons or whatever, but I have no idea how to do it in OSX. Also, ditto accessing the MyBookWorld directories which I see in 'SHARED' in finder. Again, in windows it would be something like //MyBookWorld/Media/TV/... and so on. I have tried all sorts of different things but nothing works.............
I was helping a friend by reformatting his pc and reinstalling windows because it was slow, when I was downloading the drivers for it on my MacBook Pro (didn't have access to the router since it's downstairs and his pc didn't have a wireless card), it downloaded a folder filled with locked files, it comes several folders deep and all of the files are locked, fun. So I tried to delete it using sudo rm -r, but it says I don't have sufficient privileges, anyone know a command I can use to delete it all? I'd rather not do it by hand, that'd take forever.
View 10 Replies View RelatedThis morning I suddenly found out that, on my new macbook pro, command-delete will delete the file (with the warning window) immediately without putting it into trash first. This function works well yesterday.
View 1 Replies View RelatedI need a way to quickly remove text from a load of file names. I have ripped my DVD TV show series to my Apple TV and transfered them, but I want to make all the file names simpler that what they are currently. Changing them all through FTP would take ages - so I am hoping there is some kind of recursive command I can use to eliminate a set bit of text from a group of folders.
View 4 Replies View RelatedIs it possible to edit a .plist file in Terminal that is running from a Leopard boot disc?
View 1 Replies View RelatedI recently downloaded a .dmg file to install a program on my mac. I am running the latest version of Lion. The dmg file mounted, and when I clicked on it, it opened the finder box with two icons, one to click to install and one for uninstalling. The Install one also was missing the logo that showed on my other computer. I clicked on the install logo and the Terminal window opened, and nothing else happened.
Info:
MacBook Pro, Mac OS X (10.7.2)
I am using the example code: sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m with Terminal. The file is ubuntu.dmg but it claims "no such file or directory." How do I find the correct file name?
Info:
MacBook, Mac OS X (10.6.8)
Through some scripting mishap, I accidentally ended up with two copies of everything in my iTunes library. One was in lossless format, the other in AAC. I just went through and deleted all the AACs by hand. I'm worried that I might have accidentally deleted a lossless copy though, in stead of the AAC copy. Is there a way I can search through the trash (via terminal presumably) to make sure there are no lossless files in there? It'd be so easy if they didn't have the same extension.
View 5 Replies View Relatedi have been looking through previous discussions re these type of files but its all well and truley above me. I have been given a video file and when copied to 'finder' it showed it was a unix executable file and it opened Terminal, again made no sense to me. I was informed to download MPEG Streamclip with no luck and the jargon I have read is goobledegook to me,
Info:
MacBook
Pro, iPadApple TV2iTouch 2 geniPod cl
I am looking for a command to create a .zip file with todays date of /Library/Caches/
What is the command for creating a .zip file with date in Terminal?
I'm trying to use wget -i <filename> in Terminal, but every time I run it, the txt file (saved as UTF-8) has all the lines run together with %0D. I don't even know where to start to troubleshoot. Thoughts?
Example of file in Textedit:Line1Line2
Example in Terminal:
Line1%0DLine2%0DLine3
I am relatively new to the Mac. I have a Macbook Pro 2.2GHz. Today, a file keeps popping up on my desktop. It is named .DS_Store. The icon looks like a text document. I won't open it cuz I'm afraid of what it is, lol (Windows still clogging my brain). Anyway, I can drag it to the trash and delete the trash, but after a bit, it reappears.
Any idea how to get rid of it?
After I installed OS X I decided to go through my other partitions & do a little spring cleaning. In all, I trashed over 400MB of crap, but one file has refused to be deleted (it's a locked file left over from the old 3Com ISDN modem I had). When I try to empty the trash I get the following message:
"The operation cannot be completed because the item 'IQ320.BIN' is locked."
So, I look through the system help & find out that I either need to log in to OS X as the user who created the document ('root') or restart into OS 9 & unlock it from there.
Well, neither tactic has worked thus far. I restarted into OS 9 but found out that I can't access the file because it's in the trash (in OS X), which is an invisible directory (/Langly/.Trashes/102/). So then I restarted into OS X, logged in as root, but I still couldn't delete it. Desperate, I opened terminal, switched to root (su) found the files, but still can't delete the darned file. I tried rm, mv (thought if I moved it to somewhere that OS 9 could see it...), even chown, but each time I got "Operation not permitted." Any thoughts out there?
how can i delete a file that says that it is still use when the trash can is emptied and the file is not opened
View 9 Replies View RelatedI am trying to delete an XLS file from a network drive and am getting a message that says the file cannot be deleted because it is in use.I can't see where it is in use and have tried to reboot the computer to no avail. I can delete other files but several XLS files are giving me this message.
Info:
MacBook
Pro, Mac OS X (10.7.4)
I can't open a silverlight dmg file to watch netflix. I am running Lion on my 2.66ghz iMac i5 with 10.7.3. I can download and install silverlight but when I try to open the file, it always opens the Terminal window.
Info:
iMac, Mac OS X (10.7.3)
Cannot seem to upload to a ftp server (permissions are correct on the home folder of the user!)But I get this result:
ftp> put /Users/[userfolder]/Documents/untitled.rtf
local: /Users/[userfolder]/Documents/untitled.rtf remote: /Users/[userfolder]/Documents/untitled.rtf
227 Entering Passive Mode (99,254,236,63,209,169)
553-Can't open that file: No such file or directory
553 Rename/move failure: No such file or directory
i have a file on my macbook pro called recycler and I cannot get rid of it from the trash
its says .vmx is locked
and having gone in to it i see the file
jwgkvsq.vmx has a locked sign by it
any ideas how to get rid of this ?
I've got a file that looks like this
Code:
Z��␀�J�?.h��
When I tried to delete in Finder, it moves it Trash, but emptying the Trash leaves it in there. I tried rm -fr * in Terminal and got a "file too long" error.
Anybody see this before? I opened up Terminal.app and the window is completely blank. There is nothing in it whatsoever. Looks as if bash never started. The title bar simply says "Terminal — login — 80x24". I can type whatever I want in the Terminal window like it's a text document and nothing happens. If I restart the computer, this seems to fix the problem, but it seems to only be a temporary fix as the issue happens again soon after.
View 1 Replies View RelatedI'm trying to do something in terminal, and it asks for my password. I press a letter on my keyboard, and nothing appears. I am in the right window and everything, terminal just doesn't react to my typing. However, when I click enter, it says 'Sorry,try again'. So it does react to the enter key.
I'm running Symantec Backup Agent on our mac osx server. I start the agent in the terminal (./agent.be). It returns a notification that it started the service, however, it doesn't return to the prompt. Closing the terminal gives a warning that the process will be closed if the terminal is closed. Closing it does kill the process. Ctrl+c to return to the prompt also kills the process. So it's as if once the process is started in the terminal, nothing can be altered.
I am not much of a mac guy so please forgive me if this is a stupid question.
Anyone have any advice on how to handle this so the process is ALWAYS running?
I'm on a standard user account and I would really like to install icalbuddy which is a terminal app. When I install apps normally I simply have to provide a admin name and pw, but this doesn't work when it is a terminal app because it requires that the 'su' command be run.
So I thought that I could run terminal as admin through 'su - admin' and then install. But of course the admin account doesn't have access to the user folder where the installer is located. I just can't win.
I have a file in the drop box of my laptop running OSX 10.5.8 I have copied it to the appropriate folder (Music) but it will not permit me to delete it from the drop box folder.
When I try to send it to the trash, it says it is locked. When I go to Get Info, it shows it locked but that area is grayed out. Even when I open the padlock with the password, it stays gray.
This isn't a major problem, but I would like to get rid of this file because it's annoying when I can't get a computer do do what I tell it. Every time I see it, it reminds me that the computer has gotten the best of me.
There is an avi file I found on my computer of an ex gf of mine. Now that I have a NEW gf, it would definitely not be a good idea to keep it on the computer. Problem is, I can't seem to delete it. I'm not super tech savvy, but I was able to delete quite a few other files with no issue, this is the only one that remains.I tried to hold option down while I emptied the trash, as I'd found that online. No go.
View 7 Replies View RelatedI cannot delete a file(s) in MAC OS X. Receive error - 8058. I can't even move the files. They look like ghost files (other folder) from previous deleted items. I deleted hundreds of movie (.mov) files to clear space.
Info:
MacBook (13-inch Mid 2010), Mac OS X (10.7.3)
The current issue of MacWorld described an applet called 'What's Keeping Me?
Did you ever have the problem where you can�t empty the Trash or eject a disk because something is preventing you? Usually the reason is because some application has a file open, and thus you can�t get rid of the disk or trash the file. That�s why we made What�s Keeping Me! What�s Keeping Me will identify the application that is preventing you from accomplishing your task. You can then use What's Keeping Me to quit, relaunch, or kill the problem application so you can get on with your business.
i was burning some documents for somebody i know because there CD drive correctly. she gave me all of the files on a thumb drive, and one of them was a locked PDF file, i dragged all of the docs to my desktop, burned them to a CD, then deleted them all, but the locked PDF just gives me an error. how can i unlock it/ delete it?
View 6 Replies View Related