Terminal commands to Delete Desktop Folder?
Can anyone help me with the Terminal commands to delete the desktop folder? I'm not much with Unix. It's related to my previous post about missing drive space/deleted files. I'm planning to try deleting the folder then restoring from time machine.
Thanks,
the command is
*sudo rm -rf ~/Desktop*
(you'll have to enter your admin password to make it work). Could you explain why you want to do this? If you have a TM backup and a serious problem with your system I would recommend doing a full system restore from TM.
Message was edited by: V.K.
Found your other post. (I even replied to it). You should definitely do a full system restore from TM. It will reformat your drive and cure the problem with the missing space.
Similar Messages
-
I acciendentaly deleted the desktop folder and when i try to ge tit back in trash it is not like a core folder or something like that, it also does not have the small special folder icon. How could i get these back?
I have lost all desktop folders (on right of screen) - which also includes the Hard Drive icon.
Preferences folder is also not listed under Apple image on left.
I tried reinstalling 10.5.7. No help.
The start up folder has a ? on it!
Please help.
Dr.B. -
What is the terminal command to rename a folder?
If someone could tell me this it would awesome.
thx to all repliesUse the mv command with the current and desired paths supplied. For example:
mv ~/Desktop/34 ~/Desktop/35
for a folder on the desktop.
(32999) -
Accidentally Deleted Desktop Icon
I've accidentally deleted my desktop icon from the Users folder. It doesn't really make a difference, but when using Sharing to access my iMac files from another computer, I can't go to files on the desktop.
Can anyone help me please?Hi.
What happens if you select the Desktop folder icon which is still in the sidebar? Do the contents of your desktop folder display in the Finder window?
If so, then go to the Finder Menu bar and click View > Show Path Bar. When the contents of the Desktop folder are displayed in the window, the path bar (at the bottom of the window) should display the current path to that folder, as it does in this screenshot:
Is it possible that the Desktop folder was somehow relocated into another folder? (I don't even know if that's possible).
Perhaps the folder itself has become hidden. You said that when you use Terminal to create a new Desktop folder, the response was that the file already exists.
Try this Terminal command to unhide the folder...
chflags nohidden ~/Desktop/
Post back and let us know if this has any affect. -
I screwed up while trying to make my library folder visible and typed the following command in Terminal: chflags ~/Library
Is this going to cause problems and if so, is there a way to delete it? I also added the correct Terminal command and the Library folder is now visible.
Thanks much!That is correct, after typing: 'chflags ~/Library' and hitting "Enter", I typed: 'chflags nohidden ~/Library' and "Enter" Thanks much for your reply! No way to undo what I did?
-
Hi
I'm new to Applescript and have not been able to find an answer after doing a search on the web or in this forum; is there a command that deletes a folder or file immediately rather than just moving it to the trash?using the unix command rm is much faster than deleting files with finder commands in applescript. (this is true of shell scripting in general)
before starting, you should learn more about the command by opening a new window in the Terminal app and typing:
man rm
this will tell you all the details about how it works.
Also, when using unix commands, remember to use "quoted form of posix path of (file alias)". Finder paths (colon separated) will not compute. -
I accidentally deleted my "Desktop Folder" and now I cant drag any files directly to my desktop. Also, Is there any way I can recover the file if I already emtied the trash can?
Hi, Andrea
Welcome to Apple discussions.
What do you mean by "deleted desktop folder"? Did you deleted the folder that appeared in any finder window? If so, go to finder, click in "Finder" (beside the Apple logo), preferences, sidebar. Select "desktop" and close preferences. It will show up again.
Hope it helps.
JP -
Can not drag a pic from aperture onto desktop folder. was able to drag 7 but number 8 was a duplicate of 7. Can not delete any pics from desktop folder
This is a solution for duplicates
http://osxmactips.blogspot.com/2009/01/delete-duplicate-iphoto-photos.html
or use a specialized software, Duplifinder
http://www.haystacksoftware.com/duplifinder/
Advanced user tips ... but first backup your iPhoto library
If you want to get rid of your original photo files and leave them in iPhoto, thus freeing up much hard drive space, you can use these commands in Terminal:
mkdir ~/.Trash/iPhoto-Originals
cd ~/"Pictures/iPhoto Library/Modified/"
find . -type f -exec mv "../Originals/{}" ~/.Trash/iPhoto-Originals/ \;
Type these commands carefully and it should work! -
I have a folder on my Desktop that I've dragged and dropped into my Favorites in the side bar. When I try to delete the folder from the Desktop, it wants to delete it from my favorites, as well. How can I delete the folder from the Desktop without deleting the one in my Favorites?
Items in the favorites bar are simply references to physical folders on the hard drive.
There are ways around this if you simply do not want to see the folder from the desktop.
You can move the folder somewhere else on your hard drive. The reference in favorites should still point to the correct folder.
Or you can hide the folder itself by typing the terminal command
chflags hidden
then drag and drop the offending folder into the terminal window.
So you will see something like this – chflags hidden /Users/YourName/Desktop/FolderName
Then press enter and bam, folder invisible but still in favorites. -
Desktop runs some weird Terminal Commands and acts like an Application.
So, My Desktop runs like an application and does a weird terminal command.
What I can't do:
Can't copy or place anything on the desktop except for the screenshots I take
Can't create a new folder
Can't do anything basically.
Help?Run Disk Utility and Repair Permissions.
-
Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop
Please helpIt is a folder which I have created. Name is "SAP".
I copied some of my office stuff and then deleted the contents inside the folder. But I couldnt delete the folder SAP.
This is happening after the Mavericks update. -
Does anyone know a powershell command that can be run on Exchange 2010 SP1 that will permanently delete mail in the deleted items folder older than X days for ALL users in a specific database? This should include any user created subfolders in deleted items
also.
I know that seems bizarre to have user created subfolders in deleted items but we have found that users have discovered that if they create subfolders then their deleted items dont get purged at the regular retention period time.
Thank You.Hi,
For Exchange 2010 SP1, we can use search-mailbox and new-mailboxexportrequest to delete message in certain folder.
Understanding Exchange Search
http://technet.microsoft.com/en-us/library/bb232132.aspx
Xiu Zhang
TechNet Community Support -
Contents of my "desktop" folder have been deleted
I woke up this morning to find that the contents of my "desktop" folder have been deleted.
It no longer appears under "Places" in a new window in the finder so I assume it has been deleted and the finder created a new one.
When I do a search for a file I know was on the desktop it does not show up any longer.
Any ideas where it could have gone to? Or if it is recoverable?138thstny wrote:
Well, not a lot of people have access to my computer. My girlfriend and roommate.
That's enough!
Is it possible to undelete files if they were deleted by accident??
If they're still in the trash, yes, you can just move them out.
If not, then in theory you might be able to recover them, but it's expensive and quite "iffy." And the more you've used the computer, the more likely it is that they've been overwritten. If you want to go that route, turn your Mac off immediately. Use another to look for +Data Recovery+ apps via Google, VersionTracker.com, or MacUpdate.com.
Also, get an external drive or Time Capsule or USB drive for an Airport Express and start using Time Machine. You'd have been able to recover in about a minute. -
I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed. Can anyone tell me how to reverse the terminal command for show Library. The command I used was:
chflags nohidden ~/Library/Showing the Library folder will not cause the problem you've described. Nevertheless:
chflags hidden ~/Library
will hide the folder. To reveal the folder:
chflags nohidden ~/Library
Note, there is no "/" after Library. -
I want to delete a folder but every time i do, it reappears on my desktop, even after I empty/secure empty the trash.
I contracted Security Tool the same way about ten minutes ago on my Win7 Home Premium laptop. Firefox prompted me to do an immediate update the way it normally does, with a convincing update screen that looks like the typical Mozilla update prompt. However, the installer I downloaded was in fact "Security Tool." The program firewalls Firefox to prevent searches and also prevents access to Task Manager via Ctrl-Alt-Del. On the surface this appears to be a particularly nasty strain of malware / scamware, and FF users need to be warned and/or innoculated immediately.
Maybe you are looking for
-
Hi I was wondering if anyone has ever had problems with these speakers.... I dont know what the problem is...it was working fine for about a month and the connection to the right rear speaker on the sub died. I cant explain it. The speaker works fine
-
Had a problem yesterday and Google chrome replaced Firefox as my default browser without my knowledge. I removed Chrome from my system and can use Firefox. I have two icons for Firefox on my quick launch toolbar one says Beta6 the other Beta9 but bot
-
Dear Experts, in my company, due to a SAP external system process it happens quite often that the same material/serial number should be sold, returned and sold again the same day(within several minutes). The external system isn't able to send (IDoc)
-
I am having trouble getting SQLLoader to import a CSV file that has embedded commas in a description field. For example, "Alkaline, Phosphatase" or "Aspartate, aminotransferase". On rows like that the error log indicates an invalid number on a contro
-
Dear Experts, In my desktop, i have a text file. In my system i opened tcode CV01N and i have specified the text file path (in Document Data->orginals) and saved the document.It generated a Document no. When i double click on the file it opens correc