newdevs:landscape:tools:bash
New Developers Working Group
Common Bash Commands
cd
–> move back to the home foldercd foldername
–> move from the current folder to a child foldercd ..
–> move up in the folder hierarchy one levelclear
–> clears your command window giving you a fresh screen to work with (also, Ctrl-l)cp myfile.txt myfile.bak
–> copies file with new namediff myfile.txt otherfile.txt
–> shows differences between filesecho $ (tab tab)
–> returns list of all variablesecho $s (tab)
–> returns list of all variables that begin with 's'echo (variable name)
–> returns value of variablels
–> list visible folders and files in the current folderls -a
–> lists all of the files and folders in the current folder, including hidden filesls -l
–> lists all of the folders and files in the current folder with additional detail such as last modified timestampman (name of command)
–> opens manual for that commandmkdir newfoldername
–> create a new foldermv myfile.txt myfolder
–> moves file to foldernotepad++ newdocname.txt
–> create a new file and open it in notepad++notepad++ docname.txt
–> edit an existing file in notepad++pwd
–> see what folder you are currently inrmdir (myfoldername)
–> deletes folder
newdevs/landscape/tools/bash.txt · Last modified: 2024/08/27 21:42 by sleary