0% found this document useful (0 votes)
45 views

4.1 Linux-Command-Reference

The document provides descriptions of common Linux commands. Some commands display or manipulate files and directories (such as cat, cp, du, file, grep, less, ln, locate, ls, mkdir, mv, rm, touch), some set or display system information (such as date, df, pwd, uptime, who), some launch processes (such as kill, ps, ssh, su), some manage file packaging and archives (such as tar), and others provide system utilities (such as clear, man).

Uploaded by

Mancharagopan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

4.1 Linux-Command-Reference

The document provides descriptions of common Linux commands. Some commands display or manipulate files and directories (such as cat, cp, du, file, grep, less, ln, locate, ls, mkdir, mv, rm, touch), some set or display system information (such as date, df, pwd, uptime, who), some launch processes (such as kill, ps, ssh, su), some manage file packaging and archives (such as tar), and others provide system utilities (such as clear, man).

Uploaded by

Mancharagopan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux Command Reference

Command Description
cat [filename] Display file’s contents to the standard output device
(usually your monitor).
cd /directorypath Change to directory.
chmod [options] mode Change a file’s permissions.
filename
chown [options] filename Change who owns a file.
clear Clear a command line screen/window for a fresh start.
cp [options] source Copy files and directories.
destination
date [options] Display or set the system date and time.
df [options] Display used and available disk space.
du [options] Show how much space each file takes up.
file [options] filename Determine what type of data is within a file.
find [pathname] Search for files matching a provided pattern.
[expression]
grep [options] pattern Search files or output for a particular pattern.
[filesname]
kill [options] pid Stop a process. If the process refuses to stop, usekill -9
pid.

less [options] [filename] View the contents of a file one page at a time.
ln [options] source Create a shortcut.
[destination]
locate filename Search a copy of your filesystem for the specified filename.
lpr [options] Send a print job.
ls [options] List directory contents.
man [command] Display the help information for the specified command.
Linux Command Reference
mkdir [options] directory Create a new directory.
mv [options] source Rename or move file(s) or directories.
destination
passwd [name Change the password or allow (for the system
[password]] administrator) to change any password.
ps [options] Display a snapshot of the currently running processes.
pwd Display the pathname for the current directory.
rm [options] directory Remove (delete) file(s) and/or directories.
rmdir [options] directory Delete empty directories.
ssh [options] Remotely log in to another Linux machine, over the
user@machine network. Leave an ssh session by typing exit.
su [options] [user Switch to another user account.
[arguments]]
tail [options] [filename] Display the last n lines of a file (the default is 10).
tar [options] filename Store and extract files from a tarfile (.tar) or tarball
(.tar.gz or .tgz).
top Displays the resources being used on your system. Press q
to exit.
touch filename Create an empty file with the specified name.
who [options] Display who is logged on.

You might also like