User Tools

Site Tools


newdevs:landscape:tools:bash

New Developers Working Group

Common Bash Commands

  • cd –> move back to the home folder
  • cd foldername –> move from the current folder to a child folder
  • cd .. –> move up in the folder hierarchy one level
  • clear –> clears your command window giving you a fresh screen to work with (also, Ctrl-l)
  • cp myfile.txt myfile.bak –> copies file with new name
  • diff myfile.txt otherfile.txt –> shows differences between files
  • echo $ (tab tab) –> returns list of all variables
  • echo $s (tab) –> returns list of all variables that begin with 's'
  • echo (variable name) –> returns value of variable
  • ls –> list visible folders and files in the current folder
  • ls -a –> lists all of the files and folders in the current folder, including hidden files
  • ls -l –> lists all of the folders and files in the current folder with additional detail such as last modified timestamp
  • man (name of command) –> opens manual for that command
  • mkdir newfoldername –> create a new folder
  • mv myfile.txt myfolder –> moves file to folder
  • notepad++ 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 in
  • rmdir (myfoldername) –> deletes folder
newdevs/landscape/tools/bash.txt · Last modified: 2024/08/27 21:42 by sleary

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.