Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 2.54 KB

commands.md

File metadata and controls

36 lines (34 loc) · 2.54 KB

Unix (Mac & Linux & Windows Subsystem)

Command Stands For Description
ls long listing lists all files and directories in the present working directory
ls -a long listing all lists hidden files as well
cd {dirname} change directory to change to a particular directory
cd ~ change directory home navigate to HOME directory
cd .. change directory up move one level up
cat {filename} concatenate displays the file content
sudo superuser allows regular users to run programs with the security privileges of the superuser or root
mv {filename} {newfilename} move renames the file to new filename
clear clear clears the terminal screen
mkdir {dirname} make directory create new directory in present working directory or at specified path
rm {filename} remove remove file with given filename
touch {filename}.{ext} touch create new empty file
rmdir {dirname} remove directory deletes a directory
ssh {username}@{ip-address} or {hostname} secure shell login into a remote Linux machine using SSH

Command Line (Windows)

Command Stands For Description
dir directory displays a list of files and sub-directories in a directory
cd change directory to change to a particular directory
cd ~ change directory home navigate to HOME directory
cd .. change directory up move one level up
cls clear clear console screen
type nul > {filename}.{ext} create file creates an empty file
copy {start-location} {end-location} copy copies one or more files to another location
del {filename} delete delete one or more files
find {string} {filename} find searches for a text string in a file or files
ipconfig ip configuration displays all current tcp/ip network config values
mkdir {dirname} make directory creates a directory
move {file-start} {file-end} move moves on or more files from one directory to another directory
rmdir {dir} remove directory removes a directory
ssh {username}@{ip-address} or {hostname} secure shell login into a remote Linux machine using SSH