Useful terminal commands

Take note that these commands work in all Linux distributions not just Ubuntu.


cd change directory

ls List directory contents

pwd show working directory

cat see the contents of a file

mkdir create a folder

cp copy a file

cp –a copy a directory

mv move a file

rm remove a file

rm –rf remove a directory ( no warning given)

df –h see hard disk usage

locate locate a file

du –h show a the size of a specific directory

shutdown –h shutdown the system reboot restarts the system

history display all previous commands typed in terminal

uptime see how long the system has been running

ifconfig see the TCP/IP settings of the system

chown change the ownership of a file or directory

chmod change permissions of a file tar compress/decompress Linux tool

Post a Comment

Previous Post Next Post