Unix Shell (Terminal)

From UCT EE Wiki
Revision as of 10:08, 6 February 2020 by CRNKEE002 (talk | contribs)
Jump to navigation Jump to search

Overview

Being able to use the Unix Shell and terminal commands is an invaluable skill, and a requirement for this course. Follow this software carpentry link for more learning resources.

Useful Commands

ls 
List current files and folders in directory
ls -al 
List everything
pwd 
Prints the current working directory
cd <directory> 
Move to a specified directory eg “cd .. ” will take you one level up
ifconfig 
Shows details on current network interfaces
touch <file> 
Create <file>
nano <file> 
Opens <file>in the nano text editor
vim <file> 
Opens <file>in the vim text editor
mkdir <dir> 
Creates the folder specified in <dir>
sudo <cmd> 
executes the command <cmd>with sudo privileges
raspi-config
Opens up the Raspberry Pi Configuration Tool. Must be run as administrator
man <command> 
Opens the manual for a particular command
ssh 
Creates an SSH session.
scp 
Secure copy.


File:Figures/CMDOutput
caption An example output of running some commands in the shell