Common Commands

< Help:Linux
LinuxCommon Commands
Name Synopsis Description

ls

ls {opt}

list directory contents

Options:
-a do not ignore entries starting with
-d list directories themselves, not their contents
-l use a long listing format
-R list subdirectories recursively

cd

cd {Directory]{directory}

change directory

Directory Options .. Move one level up / Move to the root directory

cat

Creates a new file

mv

Move files

rm

rm {options} {file}

Deletes a file

-f ignore nonexistent files and arguments, never prompt
-r remove directories and their contents recursively
-d remove empty directories
-v explain what is being done

Example
rm -fr /mydirectory
removes all files and directories

man

Gives help information on a command

mkdir

Creates a new directory in the present working directory or a at the specified path

rmdir

Deletes a directory

mv

Renames a directory

pwd

display which directory you are in

top

top -u somebody

Details on all Active Processes

ps

Give the status of processes running for a user

kill

kill -9 PID

Kills a process

Cookies help us deliver our services. By using our services, you agree to our use of cookies.