ls | lists the current directory. |
ls -a | lists the current directory with hidden files and . and .. . |
ls -l | lists the current directory in a long list format. |
echo "hello" | prints "hello" to the console. |
echo -n "hello" | prints "hello" to the console without trailing lf . |
echo `date` | prints current date. |
echo `date +%m%d%y-%H%M%S` | prints the current date in a specific format. |
cat /etc/sysctl.conf | reads data from file to output. |
more /etc/sysctl.conf | reads data from file to output, one screen at a time. |
mkdir tmp | creates directory tmp . |
pwd | prints working directory. |
cd tmp | changes directory to tmp . |
pwd | prints working directory. |
ls | lists current directory. |
cd .. | change directory to parent directory. |
cp /etc/sysctl.conf tmp | copies cp /etc/sysctl.conf to tmp . |
cp tmp/sysctl.conf tmp/abc | copies tmp/sysctl.conf to tmp/abc . |
ls -aF tmp | lists current directory, -a all files, -F , append indicator (one of */=>@ | ) to entries. |
mv tmp/sysctl.conf tmp/xyz | moves, or renames tmp/sysctl.conf to tmp/xyz . |
ls -aF tmp | lists current directory, -a all files, -F , append indicator (one of */=>@ | ) to entries. |
man g++ | opens manual for g++. |
rm tmp/abc | removes tmp/abc . |
touch tmp/defg | creates an empty file at tmp/defg . |
ps -x | prints all process status, including non-user invoked ones. |
ps -auxw | prints all process status, except the session leaders and processes not associated with a terminal, and displays only information about processes with the user ID numbers or login names specified for the Ulist variable, including non-user invoked ones, in a wide-column format for output. |
pico tmp/xyz | opens tmp/xyz in a simple text editor pico . |
exit | ends the terminal session. |