Linux terminal print file and folder sizes

du -sh /*

Change the path to whatever is desired. Add the /* at the end to size subfolders & files inside the path.

e.g. /Users/test/*
Advertisements

OS X wipe free space

Where disk1┬áis the partition to be wiped (as listed by diskutil – disk1 is the 120GB system partition).

My-MacBook-Air:~ user$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Untitled                120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Untitled               +120.1 GB   disk1
                                 Logical Volume on disk0s2
                                 0EED4367-5D4F-4525-8443-2A941A4631B7
                                 Unencrypted
My-MacBook-Air:~ user$ diskutil secureErase freespace 0 /dev/disk1
Started erase on disk1 Untitled
Creating a temporary file
Securely erasing a file
Creating a secondary temporary file
Mounting disk
Error: -69847: Couldn't create temporary file
Underlying error: 1: POSIX reports: Operation not permitted
My-MacBook-Air:~ user$ 

Auto launch VLC on OS X – AppleScript

Add the following to an AppleScript: (from AppleScript Editor)

do shell script "/Applications/VLC.app/Contents/MacOS/VLC /path/to/your/video-file.mov --fullscreen"
tell me to quit

Export as application. Add the application to the Login Items in Users & Groups

Create a free website or blog at WordPress.com.

Up ↑