ls - List directory contents - Basic Linux Commands
• Lists files, directories
• For long output, pipe through more: > ls -l | more
(use q or Ctrl-c to exit)
grep - Find a text in a file - Basic Linux Commands
* > grep failed auth.log
cd - Change current directory - Basic Linux Commands
shutdown - Shut the system down - Basic Linux Commands
pwd - Print Working Directory - Basic Linux Commands
* Useful when changing directories often
passwd - Change a user account password - Basic Linux Commands
• passwd [username]
mv - Move (rename) a file - Basic Linux Commands
* > mv first.txt second.txt
cp - Copy a file - Basic Linux Commands
* > cp rst.txt second.txt
rm - Remove files or directories - Basic Linux Commands
* Directories must be empty or must be removed with -r
mkdir - Make a directory - Basic Linux Commands
* > mkdir notes
chmod - Change mode of a file system object - Basic Linux Commands
chown - Change file owner and group - Basic Linux Commands
* > sudo chown professor script.sh
iwconfig - View or change wireless network configuration - Basic Linux Commands
* iwconfig eth0 essid studio-wireless
ifconfig - View or configure a interface and IP configuration - Basic Linux Commands
•ifconfig eth0
ps - View the current process - Basic Linux Commands
su - Become a super user - Basic Linux Commands
• You continue to be that user until you exit
sudo - Execute a command as the super user - Basic Linux Commands
• Only that command executes as the super user
apt-get - Advanced Packaging tool - Basic Linux Commands
* > sudo apt-get install wireshark
vi - Visual mode editor - Basic Linux Commands
dd - Convert and copy a file - Basic Linux Commands