Miscellaneous

Command
Description
Example

echo [text]

Display a line of text.

echo "Hello, World!" → Prints Hello, World! to the terminal.

clear

Clear the terminal screen.

clear → Clears the terminal screen.

date

Display or set the system date and time.

date → Displays the current date and time.

cal

Display a calendar.

cal → Displays the current month's calendar.

history

Show the command history.

history → Lists the previously used commands.

man [command]

Display the manual page for a command.

man ls → Shows the manual for the ls command.

alias [name]='[command]'

Create a shortcut for a command.

alias ll='ls -l' → Creates an alias ll for ls -l.

unalias [name]

Remove an alias.

unalias ll → Removes the alias ll.

sleep [time]

Pause for a specified amount of time.

sleep 5 → Pauses the terminal for 5 seconds.

Last updated