A Few Linux Commands

Quick Start

date Print date and time
whoami Shows who is currently logged on
echo "HELLO" Prints HELLO
ls /tmp Lists contents of directory /tmp
ls -l /tmp Lists contents of directory /tmp in long form, with more information
date >> /tmp/foo Prints date, redirecting output to the file /tmp/foo

Next Steps

cd /tmp Changes working directory to /tmp
pwd Print working directory
mkdir /tmp/foo Make directory /tmp/foo
cat /tmp/foo Print contents of file /tmp/foo
ifconfig Show IP addresses and other networking information
ls /tmp | more Lists contents of directory /tmp, one page at a time


Last revised: 3-22-17