- Echo a variable value
echo $variable
- Export a variable
export $variable
- Create a new file
open file
(editor bonito)
nano file
(vi :( )
touch file
(criar arquivo)
chmod 7555
(permissão total em um arquivo)
-
Create and use
~/.bash_profile
file to alias and variables -
Create directories
mkdir -p
(com subdiretorios)
mkidr
(precisa todo o caminho existir)
- Zip a file with pass
zip -er output-file-name.zip directory-source-path