find /path/to/files -iname .DS_Store -delete
Enter OS X Recovery Mode
To boot into OS X Recovery, the first thing you need to do is to restart your Mac. While restarting, hold down CMD + R until the Apple logo appears. If you time it right, you will enter the recovery mode.
What you need to do next is to go to Utilities > Terminal to open a Terminal. In Terminal, type
resetpassword and press Enter.
You will now be presented with the Reset Password window. Next, select your OS X drive. From the drop-down under “Select the user account:”, choose the user account that you want to reset password for.
Type in your new password, re-enter it and try not to forget it this time. You can also choose to write down a hint in the “Enter a new password hint for this user (optional)”, just in case.
Once you’re done, click on Save. You will be prompted with this message saying that your user account password was reset but your keychain is not. Just click OK and close all windows.
Now click the Apple icon at the very top left and choose Restart. You can now enter your account with your new password.
Indexing of an AFP-network drive isn’t a problem:
To enable spotlight indexing on a network drive open Terminal.app and enter:
mdutil /Volumes/name -i on
To disable the indexing of a connected network drive:
mdutil /Volumes/name -i off
To check the status of indexing on a connected network drive:
mdutil /Volumes/name -s
Avvia il Mac in modalità utente singolo tenendo premuti i tasti Command+S (o Mela+S che dir si voglia) finché non compaiono delle scritte sul terminale, digita:
$ fsck -fy $ mount -uw / $ launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist $ dscl . -passwd /Users/username password
nomeutente è il vero nome utente (quello che sarebbe riportato vicino alla “casetta” per intenderci) e password la nuova password che vuoi impostare.
Se non conosci il nome utente di un account amministratore ti basterà digitare more /etc/passwd per visualizzare il file dove sono memorizzati tutti gli utenti presenti nel sistema. Noterai il tipo di privilegio dell’utente nella quinta colonna. Potresti inoltre cambiare direttamente la password dell’utente root (che sui sistemi Unix rappresenta il superuser del sistema e quindi con accesso totale).
Riavvia infine il sistema tenendo premuto il pulsante di accensione
Change port number and restart ftp service
Go to terminal and execute this command:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Password protect a zip file archive Creating a password protected zip file is easy in Mac OS X and does not require any add-ons or downloads. Instead, use the zip utility that is bundled with all Macs.
If you’re familiar with the command line, the syntax of the encrypted zip command is as follows:
zip -e [archive] [file]
For encrypting multiple files with a password, such as folder or an entire directory, the syntax would be as follows:
zip -er [archive] [folder]
If you’re not sure how to use that, read on to learn how to create zip archives encrypted with passwords. These encrypted zip files will maintain password protection across platforms, meaning you can send a protected zip file to a Windows user and they will still need to enter the password in order to view the contents.
Zip Password in Mac OS X
Set a Zip Password in Mac OS X
You can create password protected archives of files and folders:
Launch the Terminal from the Applications > Utilities folder
Type the following command:
zip -e archivename.zip filetoprotect.txt
Enter and verify the password – don’t forget this
The resulting archive, in this case named “archivename.zip”, is now encrypted with the password provided. The file that was encrypted, “filetoprotect.txt”, is now inaccessible without entering that password.
If you plan on compressing multiple files within a folder, you will want to slightly modify the command with the -er flag like so:
zip -er archive.zip /path/to/directory/
This is particularly important for encrypting zips of multiple files under OS X Mavericks.
Example: Zipping a Folder and Setting a Password
Here is an example of what this will look like from the command line, in this case we are compressing and password protecting the entire ‘Confidential’ folder located within the users /Documents directory, and the password protected zip is being placed on the users desktop for easy access:
$ zip -er ~/Desktop/encrypted.zip ~/Documents/Confidential/
adding: ~/Documents/Confidential/ (deflated 13%)
Notice the password will not display, this is normal behavior for the Terminal.
Notice that with a folder of multiple files, you will want to use the -er flag, the addition of the r indicates that zip will recursively compress and password protect all files in the folder.
Opening the Password Protected Zip
Despite being created at the command line, you do not need to unzip the file from the terminal, it can be expanded from the Mac OS X Finder or within Windows using standard unzipping apps. Just double click on the file, then enter the password, and it will decompress. You can also decompress the zip archive from the command line with:
Here are some use cases for password protected zip archives:
Password protecting an individual file or directory
Sending a sensitive and encrypted file over an unencrypted network
Emailing confidential data to a Windows user
Adding an additional layer of security to a hidden folder
Password protecting your own backups, outside of Time Machine
While this can provide some protection on a per-file or folder basis, it’s always a good idea to password protect the Mac in general with a login requirement on system boot, wake from sleep, and waking from the screen saver.
sudo route -n add 10.10.10.10/16 192.168.4.11 sudo route -n delete 10.10.10.10/16 192.168.4.11
Viewing route table with:
ROUTE(8) BSD System Manager’s Manual
route — manually manipulate the routing tables
route [-dnqtv] command [[modifiers] args]
Route is a utility used to manually manipulate the network routing tables. It normally is not needed,
as a system routing table management daemon such as routed(8), should tend to this task.
The route utility supports a limited number of general options, but a rich command language, enabling
the user to specify any arbitrary request that could be delivered via the programmatic interface dis-cussed discussed
cussed in route(4).
Selezionare Logout e poi eseguire il Login tenendo premuto il tasto
shift fino alla visualizzazione completa della scrivania.
Verranno disabilitate tutte le applicazioni inserite nell’elenco di avvio di Preferenze di Sistema/Account/Elementi login
Se una delle applicazioni in elenco creava il conflitto con il software che si stava usando per il proprio lavoro, in questo modo si dovrebbe essere in grado di portarlo a termine.
Reset the PRAM
Command + Option + P + R keys while booting
Reset the NVRAM
Command + Option + O + F while booting, and then reset-nvram and reset-all at the prompt