Shell Scripting Basics Cheat Sheet

A Software › Operating Systems cheat sheet in English by leenmajz

This is a basic cheat sheet for Shell scripting Languages

4,302 views 765 downloads 31 Mar 2024 History

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.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.