Basic Linux commands

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:57 PM on 8/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

cat [filename]

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

2
New cards

cd /directorypath

Change to directory.

3
New cards

chmod [options] mode filename

Change a file's permissions.

4
New cards

chown [options] filename

Change who owns a file.

5
New cards

clear

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

6
New cards

cp [options] source destination

Copy files and directories.

7
New cards

date [options]

Display or set the system date and time.

8
New cards

df [options]

Display used and available disk space.

9
New cards

du [options]

Show how much space each file takes up.

10
New cards

file [options] filename

Determine what type of data is within a file.

11
New cards

find [pathname] [expression]

Search for files matching a provided pattern.

12
New cards

grep [options] pattern [filesname]

Search files or output for a particular pattern.

13
New cards

kill [options] pid

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

14
New cards

less [options] [filename]

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

15
New cards

ln [options] source [destination]

Create a shortcut.

16
New cards

locate filename

Search a copy of your filesystem for the specified filename.

17
New cards

lpr [options]

Send a print job.

18
New cards

ls [options]

List directory contents.

19
New cards

man [command]

Display the help information for the specified command.

20
New cards

mkdir [options] directory

Create a new directory.

21
New cards

mv [options] source destination

Rename or move file(s) or directories.

22
New cards

passwd [name [password]]

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

23
New cards

ps [options]

Display a snapshot of the currently running processes.

24
New cards

pwd

Display the pathname for the current directory.

25
New cards

rm [options] directory

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

26
New cards

rmdir [options] directory

Delete empty directories.

27
New cards

ssh [options] user@machine

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

28
New cards

su [options] [user [arguments]]

Switch to another user account.

29
New cards

tail [options] [filename]

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

30
New cards

tar [options] filename

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

31
New cards

top

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

32
New cards

touch filename

Create an empty file with the specified name.

33
New cards

who [options]

Display who is logged on.

34
New cards

echo

add text to a file.