New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Deleting Hidden files...


Post Reply New Thread Subscribe

 
Thread Tools
ldj
Guest
 
Posts: n/a

Hi,
Im fairly new to OS X and i was using Stuffit Expander for some pretty big RAR files. The file was corrupt and i tried to extract it a couple of times. When i was looking through my desktop folder through a program i have, it showed all these files that i cant see on the desktop: like .$$ Stuff.....
I have read that these are hidden files, but i have no idea how to delete them, they are taking up about 2 Gigs of my HD and are completely useless. Can anyone please tell me how to delete them? TIA.
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
Such files can be seen in the terminal using the ls (list with just the l and s) command Make sure you know the file path, and you don't need to change the directory to see the list
QUOTE Thanks
ldj
Guest
 
Posts: n/a

I know how to find the files, i dont know how to DELETE the files. Can someone please help me out, tia.
QUOTE Thanks
immdb

 
immdb's Avatar
 
Member Since: Nov 04, 2003
Location: Southern Indiana
Posts: 652
immdb will become famous soon enough
Mac Specs: Mac Pro Quad Xeon 2.66GHz 3GB RAM, G4 Quicksilver w/Sonnet 1GHz Encore ST, 1ghz G4 Powerbook

immdb is offline
If you find them using the desktop "Find" function by setting the visibility to invisible, you should be able to drag them from the results window to the trash.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,100
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
In the Terminal....

rm filename

if it's a directory...

rm -r name
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
rm, unlink - remove directory entries

SYNOPSIS
rm [-dfiPRrvW] file ...
unlink file

DESCRIPTION
The rm utility attempts to remove the non-directory type files specified
on the command line. If the permissions of the file do not permit writ-
ing, and the standard input device is a terminal, the user is prompted
(on the standard error output) for confirmation.

The options are as follows:

-d Attempt to remove directories as well as other types of
files.

-f Attempt to remove the files without prompting for confirma-
tion, regardless of the file's permissions. If the file does
not exist, do not display a diagnostic message or modify the
:
rm, unlink - remove directory entries

SYNOPSIS
rm [-dfiPRrvW] file ...
unlink file

DESCRIPTION
The rm utility attempts to remove the non-directory type files specified
on the command line. If the permissions of the file do not permit writ-
ing, and the standard input device is a terminal, the user is prompted
(on the standard error output) for confirmation.

The options are as follows:

-d Attempt to remove directories as well as other types of
files.

-f Attempt to remove the files without prompting for confirma-
tion, regardless of the file's permissions. If the file does
not exist, do not display a diagnostic message or modify the
:
exit status to reflect an error. The -f option overrides any
previous -i options.

-i Request confirmation before attempting to remove each file,
regardless of the file's permissions, or whether or not the
standard input device is a terminal. The -i option overrides
any previous -f options.

-P Overwrite regular files before deleting them. Files are
overwritten three times, first with the byte pattern 0xff,
then 0x00, and then 0xff again, before they are deleted.

-R Attempt to remove the file hierarchy rooted in each file
argument. The -R option implies the -d option. If the -i
option is specified, the user is prompted for confirmation
before each directory's contents are processed (as well as
:
before each directory's contents are processed (as well as
before the attempt is made to remove the directory). If the
user does not respond affirmatively, the file hierarchy
rooted in that directory is skipped.

-r Equivalent to -R.

-v Be verbose when deleting files, showing them as they are
removed.

-W Attempt to undelete the named files. Currently, this option
can only be used to recover files covered by whiteouts.

The rm utility removes symbolic links, not the files referenced by the
links.

It is an error to attempt to remove the files ``.'' or ``..''.

When the utility is called as unlink, only one argument, which must not
be a directory, may be supplied. No options may be supplied in this sim-
ple mode of operation, which performs an unlink(2) operation on the
passed argument.

:
The rm utility exits 0 if all of the named files or file hierarchies were
removed, or if the -f option was specified and all of the existing files
or file hierarchies were removed. If an error occurs, rm exits with a
value >0.

NOTE
The rm command uses getopt(3) to parse its arguments, which allows it to
accept the `--' option which will cause it to stop processing flag
options at that point. This will allow the removal of file names that
begin with a dash (`-'). For example:
rm -- -filename
The same behavior can be obtained by using an absolute or relative path
reference. For example:
rm /home/user/-filename
rm ./-filename

SEE ALSO
rmdir(1), undelete(2), unlink(2), fts(3), getopt(3), symlink(7)

BUGS
The -P option assumes that the underlying file system is a fixed-block
file system. In addition, only regular files are overwritten, other types of files are not.
QUOTE Thanks
Beemer

 
Beemer's Avatar
 
Member Since: Feb 25, 2006
Location: North America
Posts: 146
Beemer will become famous soon enough
Mac Specs: Intel 20" Mac

Beemer is offline
I have the same problem. About 8 folders of StuffIt that didn't unarchive correctly are still on my desktop. I can see them using Azereus and opening a torrent and tehy are listed. I can't drag them into the trash or delete them.

I have deleted these before easily but I forgot how its been a while.

I tried using the 'find' and it never found them.

I tried using Terminal and it said no directory existed.

Is there anyway just to allow to see invisible files and then just to drag them into the trash? Thanks.
QUOTE Thanks
surfwax95

 
surfwax95's Avatar
 
Member Since: Aug 27, 2005
Location: Fayetteville, AR
Posts: 2,410
surfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud of
Mac Specs: 15" Powerbook G4 24" iMac iPhone 3Gs

surfwax95 is offline
Open Terminal and copy/paste:

defaults write com.apple.Finder AppleShowAllFiles TRUE; killall Finder

This allows all hidden files to be visible in Finder. You can delete them using the normal GUI way, then copy/paste:

defaults write com.apple.Finder AppleShowAllFiles FALSE; killall Finder

This will get you back to normal.

Cheers.

I try to Command+Shift+/ when I can.
They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
I was on the M-F honor roll for October, 2006.
QUOTE Thanks
Beemer

 
Beemer's Avatar
 
Member Since: Feb 25, 2006
Location: North America
Posts: 146
Beemer will become famous soon enough
Mac Specs: Intel 20" Mac

Beemer is offline
Thank you! That worked!
QUOTE Thanks
gabe101

 
Member Since: Sep 19, 2011
Posts: 1
gabe101 is on a distinguished road

gabe101 is offline
Hi,

I have a similar problem but I've tried everything and nothing works!
A random file just popped up on my desktop called .DS_Store and every time i delete it just keeps on coming back :/ please help!
QUOTE Thanks
heyitsbe

 
Member Since: Mar 16, 2013
Posts: 3
heyitsbe is on a distinguished road

heyitsbe is offline
Quote:
Originally Posted by gabe101 View Post
Hi,

I have a similar problem but I've tried everything and nothing works!
A random file just popped up on my desktop called .DS_Store and every time i delete it just keeps on coming back :/ please help!
I have the exact same problem and I'm desperate! Someone please help me...
QUOTE Thanks
bobtomay

 
bobtomay's Avatar
 
Member Since: Dec 22, 2006
Location: Texas, where else?
Posts: 25,017
bobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond repute
Mac Specs: 15" MBP 2.33 C2D 256 4GB, MBA 13" i7 1.8, MB 2.0 2GB, Nano 4th, 3GS, iPad 1

bobtomay is offline
Quote:
Originally Posted by heyitsbe View Post
I have the exact same problem and I'm desperate! Someone please help me...
Turn off show hidden files by the same method you used to turn it on.

Or use the 2nd Terminal command in surfwax's post above.

I cannot be held responsible for the things that come out of my mouth.
In the Windows world, most everything folks don't understand is called a virus.
QUOTE Thanks
heyitsbe

 
Member Since: Mar 16, 2013
Posts: 3
heyitsbe is on a distinguished road

heyitsbe is offline
Quote:
Originally Posted by bobtomay View Post
Turn off show hidden files by the same method you used to turn it on.

Or use the 2nd Terminal command in surfwax's post above.
But I'd like to delete them, not just hide them...
QUOTE Thanks
bobtomay

 
bobtomay's Avatar
 
Member Since: Dec 22, 2006
Location: Texas, where else?
Posts: 25,017
bobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond reputebobtomay has a reputation beyond repute
Mac Specs: 15" MBP 2.33 C2D 256 4GB, MBA 13" i7 1.8, MB 2.0 2GB, Nano 4th, 3GS, iPad 1

bobtomay is offline
Why are you deleting hidden files - they are typically hidden because they are "system" files and for the most part you should not be touching any of those files that you do not know "for sure" what they are unless you're in the mood to possibly need to reinstall your operating system.

Exactly what is it that you want to delete?

I cannot be held responsible for the things that come out of my mouth.
In the Windows world, most everything folks don't understand is called a virus.
QUOTE Thanks
heyitsbe

 
Member Since: Mar 16, 2013
Posts: 3
heyitsbe is on a distinguished road

heyitsbe is offline
Quote:
Originally Posted by bobtomay View Post
Why are you deleting hidden files - they are typically hidden because they are "system" files and for the most part you should not be touching any of those files that you do not know "for sure" what they are unless you're in the mood to possibly need to reinstall your operating system.

Exactly what is it that you want to delete?
Well, to be honest, I actually have no idea what they are. But I saw some folders have a .ds_store file, and a .localized, and I don't know what they are, or why they have them, specially why some of them have them.

I'd also like to delete them because when I send anything to a Window's user or open folders from my mac in a Windows, some files I didn't create appear, and it's really annoying. (Specially when I have to send projects to my professors from University, or submit them online)
QUOTE Thanks

Post Reply New Thread Subscribe


« Sound Alrts | iCal to Numbers »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
List view vs. Icon view - can't see all files =^o.o^= Switcher Hangout 8 01-20-2007 06:39 PM
deleting files takes up more space??? niftyneil Apple Notebooks 3 06-09-2004 11:31 AM
search hidden files futerfas OS X - Operating System 3 04-27-2004 07:11 PM
Microsoft's Really Hidden Files Murlyn Schweb's Lounge 1 09-02-2003 07:36 PM
"Invisify" files and directories in the Finder gatorparrots OS X - Development and Darwin 2 02-09-2003 11:24 PM

All times are GMT -4. The time now is 11:16 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?