Basic Linux commands

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

chmod [options] mode filename

Change a file's permissions.

passwd [name [password]]

Change the password or allow (for the system administrator) to change any password.

cd /directorypath

Change to directory.

chown [options] filename

Change who owns a file.

clear

Clear a command line screen/window for a fresh start.

cp [options] source destination

Copy files and directories.

mkdir [options] directory

Create a new directory.

ln [options] source [destination]

Create a shortcut.

touch filename

Create an empty file with the specified name.

rmdir [options] directory

Delete empty directories.

file [options] filename

Determine what type of data is within a file.

ps [options]

Display a snapshot of the currently running processes.

cat [filename]

Display file's contents to the standard output device (usually your monitor).

date [options]

Display or set the system date and time.

man [command]

Display the help information for the specified command.

tail [options] [filename]

Display the last n lines of a file (the default is 10).

pwd

Display the pathname for the current directory.

df [options]

Display used and available disk space.

who [options]

Display who is logged on.

top

Displays the resources being used on your system. Press q to exit.

ls [options]

List directory contents.

ssh [options] user@machine

Remotely log in to another Linux machine, over the network. Leave an ssh session by typing exit.

rm [options] directory

Remove (delete) file(s) and/or directories.

mv [options] source destination

Rename or move file(s) or directories.

locate filename

Search a copy of your filesystem for the specified filename.

grep [options] pattern [filesname]

Search files or output for a particular pattern.

find [pathname] [expression]

Search for files matching a provided pattern.

lpr [options]

Send a print job.

du [options]

Show how much space each file takes up.

kill [options] pid

Stop a process. If the process refuses to stop, use kill -9 pid.

tar [options] filename

Store and extract files from a tarfile (.tar) or tarball (.tar.gz or .tgz).

su [options] [user [arguments]]

Switch to another user account.

less [options] [filename]

View the contents of a file one page at a time.


Set pelajaran terkait

COSC 3355 Operating System Concepts Chapters 1-4

View Set

chapter 14 part 3 questions and notes

View Set

PrepU Accountability Nursing Concept

View Set

English 2 Honors ethos, pathos and logos definitions

View Set

MKTG 3600 Chapter 7 Activity UVU

View Set

Midterm 2 Material: Topic 4- Gene Interaction, Inheritance and phenotype and Topic 5-

View Set

Football Stars Messi and Ronaldo Audio Bio from http://www.famouspeoplelessons.com/ Glossary in English and Catalan by mnaves3

View Set