Show Menu
Cheatography

Shell Scripting Basics Cheat Sheet by

This is a basic cheat sheet for Shell scripting Languages

Navigation

cd: Change directory
cd <di­rec­tor­y>
Change to a specific directory
cd ..
Move up one directory
cd \
Move to the root directory
dir or ls
List contents of the current directory.
pwd
Print the current working directory
mkdir NewFolder
Create a new directory
rmdir <Di­rec­tor­y>
Remove directory

File Operations

copy <so­urc­e> <de­sti­nat­ion>
Copy a file to a new location
move <so­urc­e> <de­sti­nat­ion>
Move a file to a new location
del <fi­len­ame>
Delete a specific file
ren <ol­d_n­ame> <ne­w_n­ame>
Rename a file
touch <fi­len­ame>
Create a new file

System Inform­ation

systeminfo
Display detailed config­uration inform­ation about a computer
hostname
Display the hostname of the computer
ipconfig
Display TCP/IP network settings
 

Miscel­laneous

cls
Clear the command prompt window
echo
Display text on the command line
exit
Close the command prompt window
help
Display help inform­ation for commands
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Batch Cheat Sheet
          Windows Terminal Cheat Sheet

          More Cheat Sheets by leenmajz

          Files and Internet Scrapping Python Cheat Sheet
          Docker Cheat Sheet
          Python Basics Cheat Sheet