LINUX BASIC COMMANDS

Photo of author

By Jackson Taylor

  • MAKE A FOLDER —-> sudo mkdir /home/pi/FTP
  • SEE CONTENTS OF FILE —-> cat a.py
  • change your password—-> sudo passwd
  • ls — list files in current directory
  • cd ——> change directory
  • pwd ——>  print working directory
  • rm filename ——>  remove filename
  • mkdir directoryname ——>  make directory with directoryname
  • rmdir directoryname ——>  remove empty directory
  • cat textfile ——>  display contents of textfilein the terminal
  • mv oldfile newfile ——>  move (rename) oldfileto newfile
  • cp oldfile newfile  ——> copy oldfileto newfile
  • man command  ——> display manual of command
  • date  ——> read system date/time
  • echo  ——> echo what is typed back in the terminal
  • grep  ——> search program that uses regular expressions
  • sudo ——>  perform as root user
  • ./program ——>  run program
  • exit  ——> quit terminal session

installing an software or library
sudo apt-get install package name
example–installing python 
sudo apt-get install python
example–installing python library 
sudo apt-get install python-matplotlib