Tree – Listing all files from selected directory
Installing: brew install tree Using: tree /some/dir Saving output of the tree command: tree > some_file.txt Appending content to existing file: tree >> data.txt
Installing: brew install tree Using: tree /some/dir Saving output of the tree command: tree > some_file.txt Appending content to existing file: tree >> data.txt
Open ~/.profile Add following lines: export CLICOLOR=1 export LSCOLORS=CxFxCxDxbxegedabagacad Colors: a black b red c green d brown e blue f magenta c cyan h light grey A block black, usually shows up as dark grey B bold red C bold green D bold brown, usually shows up as yellow E bold blue F bold… Read More »
Open terminal and type: ssh <host> -l <username> <password> Then log in as sudo if needed: sudo su – Other useful commands: – Logging in to mysql: mysql -h <host> -u <username> -p – Logging in to mysql on some port: mysql -h <host> -u <username> -p –port=<port> use <db-name> source <sql-file> – Unzipping: unzip… Read More »