veilsec
  • πŸ“™Veilsec
  • Notes
    • Basic
      • Linux Basics
    • Reconnaissance
      • Passive Recon
      • Active Recon
    • Enumeration
    • Exploitation
      • Brute-force
    • Post Exploitation
      • Shell Balancing
  • OSCP Notes
    • Getting Comfortable with kali
      • Installation kali
      • Basic : All about linux
    • Command Line Fun
      • Bash Environment
      • Piping and redirection
  • SANS-SEC-542-Notes
    • Module 1
      • Info-geathering
    • Module 2
    • Module 3
    • Module 4
    • Module 5
    • Module 6
Powered by GitBook
On this page
  1. OSCP Notes
  2. Command Line Fun

Bash Environment

Bash is a programing language.

PreviousCommand Line FunNextPiping and redirection

Last updated 2 years ago

  • Bash is an sh-compatible shell that allows us to run complex commands and perform different tasks from a terminal window.

  • we can directly run our command in terminal or save in file with .sh and then run it.

Terminal

Environment Variable

  • When opening a terminal window, a new Bash process, which has its own environment variables, is initialized.

  • These variables are a form of global storage for various settings inherited by any applications that are run during that terminal session.

  • One of the most commonly-referenced environment variables is PATH, which is a colon-separated list of directory paths that Bash will search through whenever a command is run without a full path.

β”Œβ”€β”€(rootπŸ’€rio)-[~]
└─# echo $PATH
/root/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/snap/bin:/snap/bin/spotify