Public Write-ups
  • 💻Lab Write-ups
    • Who is Space C4det
  • eJPT
    • eJPT Notes
      • Assessment Methodologies
        • Information Gathering
          • Introduction To Information Gathering
          • Passive and Active Information Gathering
        • Footprinting & Scanning
        • Enumeration
        • Vulnerability Assessment
  • Blue Team Labs Online
    • Remote Desktop Protocol (RDP)
    • 📝Phishy V1 BTLO
    • BITS (IN PROGRESS)
  • TCM Security Notes
    • TCM Security Notes
      • Viewing, Creating, and Editing Files
      • Users and Privileges
      • sudo and other commands
      • The OSI Model
      • Scripting with Bash
      • TCP, UDP, and the Three way Handshake
      • Common Network Commands
      • Installing and Updating Tools
      • IP Addresses
Powered by GitBook
On this page
  1. TCM Security Notes
  2. TCM Security Notes

sudo and other commands

Super user do

Run this command as a higher user, basically root.

To run the terminal as root

sudo su -

This command switches your permissions to root, which makes it so that you don't have to keep using sudo

pwd command this stands for present working directory to change directory we use cd to go backwards, we use cd ..

ls command You can also ls /folder/ to display the contents of that folder without navigating to it (cd)

To create a new directory use mkdir To remove a directory use rmdir

To display hidden folders we can use ls -la Most hidden folders start with . i.e .cache, .config

To copy files, use cp test.txt i.e cp test.txt Downloads/ This copies test.txt to /Downloads/

To move files, use mv test.txt Downloads/

To find a file, you can use locate bash use updatedb frequently

To change a password passwd enter this command

Instructions for any command, most commands have it man i.e man ls

ping a number of times instead of unlimited ping ip -c

PreviousUsers and PrivilegesNextThe OSI Model

Last updated 3 years ago