Permissões de arquivos unix

Tabelinha de permissões:

Permissão	Binário 	Octal
---		000		0
--x		001		1
-w-		010		2
-wx		011		3
r--		100		4
r-x		101		5
rw-		110		6
rwx		111		7

x -> execução
w -> escrita
r -> leitura

Reiniciar apache no MAC OS

Opa, só para deixar aqui a linha de comando que reinicia o apache.

sudo /usr/sbin/apachectl restart

Listando encoding dos arquivos pelo terminal

Um comando para listar pelo terminal, o encoding dos arquivos de determinada pasta.

Mac-mini:lw_html5 william$ for file in *.php; do file --mime $file; done
404.php: text/x-php; charset=us-ascii
archive.php: text/x-php; charset=utf-8
comments.php: text/x-php; charset=us-ascii
footer.php: text/plain; charset=us-ascii
functions.php: text/x-php; charset=us-ascii
header.php: text/html; charset=us-ascii
index.php: text/x-php; charset=utf-8
page.php: text/x-php; charset=utf-8
search.php: text/x-php; charset=utf-8
searchform.php: text/plain; charset=us-ascii
sidebar.php: text/plain; charset=us-ascii
single.php: text/x-php; charset=utf-8

É isso.

Acessando o mysql apartir do terminal no MAC

Mac:~ william$ alias mysql=/usr/local/mysql/bin/mysql
Mac:~ william$ alias mysqladmin=/usr/local/mysql/bin/mysqladmin 
Mac:~ william$ mysql -u root -p wordpress
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 62
Server version: 5.5.17 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show tables;
| Tables_in_wordpress   |
| wp_commentmeta        |
| wp_comments           |
| wp_links              |
| wp_options            |
| wp_postmeta           |
| wp_posts              |
| wp_term_relationships |
| wp_term_taxonomy      |
| wp_terms              |
| wp_usermeta           |
| wp_users              |
11 rows in set (0.00 sec)



/usr/local/mysql/bin/mysqladmin -uroot -p shutdown


sudo /usr/local/mysql/bin/mysqld_safe &