Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 615 Bytes

usefulCommands.md

File metadata and controls

29 lines (17 loc) · 615 Bytes

Useful commands

  • Echo a variable value

echo $variable

  • Export a variable

export $variable

More info

  • 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