Basic Linux commands on the Command Line Interface (CLI)

create directory/folder: mkdir

create file: touch

remove directory: rmdir foldername

clear terminal: clear

change directory1(parent) to an inner directory2(child): cd directory2 or cd .. (this goes back to parent directory1), or cd to the initial root directory

list files in the current folder: ls

copy file-one to file-two: cp fileone filetwo

rename a file (rather, move a file from fileone to a newly created filetwo and delete fileone. Can also move to another newly created file in another directory as well and dele): mv fileone filetwo or mv fileone ..

show contents of file: cat filename.ext

open editor: nano filename.ext

tell interpreter language command to use to parse/execute the rest of the file (run the script) using line: or

assign execute permission to file:

run file with :

delete file: rm

Arrow up and down to get back to prior commands

current directory:

--

--

Developer and an occasional foodie https://www.instagram.com/anaikoki/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store