Skip to content

cheatsheets of linux commands to help begginers navigate

Notifications You must be signed in to change notification settings

PanGalacticTech/linux-cheatsheets

Repository files navigation

linux-cheatsheets

Cheatsheets of linux commands & Tutorials to help begginers navigate

Navigating Directories

Show Current Path: pwd

Change Directory:

cd <new directory>

List Files & Folders

list files:

ls

Include hidden files

ls -a

List ownership:

ls -l

These can be combined

ls -la
or
ls -al

Directory Manipulation

Create a new Directory:

mkdir <directory name>

To move or rename Directory:

mv <source_directory> <target_directory>

To Delete a Directory

For an empty directory:

rmdir <directory>

For a directory that is not empty: use rm with recursive (-r) flag

rm -r

File Manipulation

Copying Files

PATH

What exactly is PATH, why is PATH and how can PATH improve your life?

https://linuxize.com/post/how-to-add-directory-to-path-in-linux/

to add /bin in home directory to path PER USER

nano ~/.bashrc

~/.bashrc
export PATH="$HOME/bin:$PATH"

Global shell specific configuration files such as /etc/environment and /etc/profile. Use this file if you want the new directory to be added to ALL system USERS $PATH.

IP Tools

NMAP GUIDE

Scan IPs on Network XX.XX.XX

sudo nmap XX.XX.XX.* -rP

  • Note. Dont know what flags do but -rP seems useful

-rP Dont know but lots of info - no device type

-sP Reports back device types

On Windows

arp -a

Copying Files from Host to Remote (& Vice Versa)

Syntax:

scp <source> <destination>

To copy a file from B to A while logged into B:

scp /path/to/file username@a:/path/to/destination

To copy a file from B to A while logged into A:

scp username@b:/path/to/file /path/to/destination

About

cheatsheets of linux commands to help begginers navigate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published