Ssh command line for mac
Tail -f logs/*log List everything from both the Accesslog and the Errorlog The following command will display log entries as they are added in realtime: The Apache webserver stores its logs in the logs/ folder which you can find in the root of your site when you log in with SSH or SFTP.Ĭontains all requests that are passed back from the front-end webserver (nginx) Mysql -u USERNAME -p DATABASENAME < FILENAME.sql Viewing and examining log files To import a database from an sql dump, run: Mysqldump -single-transaction -u USERNAME -p DATABASENAME > FILENAME.sql To make sure database dumps are consistent, the –single-transaction should be added, like: Mysqldump -u USERNAME -p DATABASENAME > FILENAME.sql To export the database to a text file, sql dump (.sql) run: To recursively fix permissions for all files in your public/ folder, run the following commands from your home directory.įind public/ -type d -exec chmod 700 \ Importing and exporting databases Our file system is properly configured, and unless you are doing any advanced sharing of files across hosts – your directories only need 700 permissions, and your files need 600 to be usable by the web server. Many online articles tell you to set permissions on files in order to make something work. Nano Handy text-editor with easy controls and onscreen help (certainly easier than vi or vim)
Man Show help page for any commandĬd ~ Go to your home directory (typically /kunder/group/username)Ĭat Print contents of file to console You will be prompted for your password, and can log in. On Windows computers many users use PuTTY. On Mac there is a program called Terminal.