

Use the backslash character to escape the next character In case you have spaces in your filenames or directories, you need to escape them. Type the letter q to quit the man command. # You can just rename the file back to what it was with mv command.įor cryptic comments, you can always uses the manual command which is man. TemporaryItemsĭrwxr-xr-x 83 mac staff 2822 Nov 7 14:52 Applescript filesĭrwxrwxrwx 12 mac staff 408 Christmas Cardsĭrwxr-xr-x 9 mac staff 306 Dec 21 17:39 Christmas Cards 2009 Spotlight-V100ĭrwxrwxrwt 5 mac staff 170 Sep 14 16:36. ĭrwxrwxrwt 8 root admin 272 Dec 24 13:55. # a is all to show hidden files & foldersĭrwxr-xr-x 41 mac staff 1496 Dec 22 17:11. The owner, group, or other has read, write, or execute permissions. To gain access to a file, you can be the owner, in the group, or not the owner and not in the group hence you end up as other. What type of entry is this? d = directory, - = file, etc.Įvery Unix resource: files, folders, etc has an owner, group, otherĪ Unix resource has one group. |||all other users not in first two types rw-r-r- 1 mac staff 64560 A-picture-of-Youpi-key.pngĭrwxr-xr-x 83 mac staff 2822 Nov 7 14:52 Applescript files/ĭrwxrwxrwx 12 mac staff 408 Christmas Cards/ĭrwxr-xr-x 9 mac staff 306 Dec 21 17:39 Christmas Cards 2009/ For directories, the slash is pasted to the end of the name. # F is type of file where / is directory. A directory is the Unix name for a folder. Let's say your flash drive is named Spotless What is my short user name? Type the whoami command. Macintosh-HD -> Applications -> Utilities -> Terminal Lets assume that your account has a short user name of mac. Here is an overview of the terminal commands. Total 1 mac staff 760K Jan 20 18:34 1 mac staff 282K Apr 26 00:53 picture.jpg r- 1 mac staff 7B 1 mac staff 46K Apr 28 16:59. One of the folders listed will be your userid.ĭrwxr-xr-x+ 80 mac staff 2.7K Apr 21 13:02 /Users/mac/ĭrwxr-xr-x+ 80 mac staff 2.7K Apr 21 13:02. >To find out the users on the system type, use the ls command. # Gain read / write access to your startup drive # ( in case of partial success repeat this command until errors go away. I think you are in single user mode via -bash-3.2# Type the follow two instructions to access the startup disk in read/write. What is displayed here are comments only.Ĭd /Volumes/Macintosh\ HD/Users/yourshortname/.Trash
