BashCards Flashcards

1
Q

alias

A

Create an alias *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

apropos

A

Search Help manual pages (man -k)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

apt-get

A

Search for and install software packages (Debian/Ubuntu)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

aptitude

A

Search for and install software packages (Debian/Ubuntu)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

aspell

A

Spell Checker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

awk

A

Find and Replace text (database sort/validate/index)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

basename

A

Strip directory and suffix from filenames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

bash

A

GNU Bourne-Again SHell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

bc

A

Arbitrary precision calculator language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

bg

A

Send to background

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

break

A

Exit from a loop *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

builtin

A

Run a shell builtin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

bzip2

A

Compress or decompress named file(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

cal

A

Display a calendar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

case

A

Conditionally perform a command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

cat

A

Concatenate and print (display) the content of files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

cd

A

Change Directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

cfdisk

A

Partition table manipulator for Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

chgrp

A

Change group ownership

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

chmod

A

Change access permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

chown

A

Change file owner and group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

chroot

A

Run a command with a different root directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

chkconfig

A

System services (runlevel)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

cksum

A

Print CRC checksum and byte counts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

clear

A

Clear terminal screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

cmp

A

Compare two files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

comm

A

Compare two sorted files line by line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

command

A

Run a command - ignoring shell functions *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

continue

A

Resume the next iteration of a loop *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

cp

A

Copy one or more files to another location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

cron

A

Daemon to execute scheduled commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

crontab

A

Schedule a command to run at a later time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

csplit

A

Split a file into context-determined pieces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

cut

A

Divide a file into several parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

date

A

Display or change the date & time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

dc

A

Desk Calculator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

dd

A

Convert and copy a file & write disk headers & boot records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

ddrescue

A

Data recovery tool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

declare

A

Declare variables and give them attributes *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

df

A

Display free disk space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

diff

A

Display the differences between two files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

diff3

A

Show differences among three files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

dig

A

DNS lookup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

dir

A

Briefly list directory contents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

dircolors

A

Colour setup for ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

dirname

A

Convert a full pathname to just a path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

dirs

A

Display list of remembered directories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

dmesg

A

Print kernel & driver messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

du

A

Estimate file space usage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

echo

A

Display message on screen *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

egrep

A

Search file(s) for lines that match an extended expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

eject

A

Eject removable media

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

enable

A

Enable and disable builtin shell commands *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

env

A

Environment variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

ethtool

A

Ethernet card settings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

eval

A

Evaluate several commands/arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

exec

A

Execute a command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

exit

A

Exit the shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

expect

A

Automate arbitrary applications accessed over a terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

expand

A

Convert tabs to spaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

export

A

Set an environment variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

expr

A

Evaluate expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

false

A

Do nothing unsuccessfully

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

fdisk

A

Partition table manipulator for Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

fg

A

Send job to foreground

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

fgrep

A

Search file(s) for lines that match a fixed string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

file

A

Determine file type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

find

A

Search for files that meet a desired criteria

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

fmt

A

Reformat paragraph text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

fold

A

Wrap text to fit a specified width.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

for

A

Expand words, and execute commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

format

A

Format disks or tapes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

free

A

Display memory usage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

fsck

A

File system consistency check and repair

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

ftp

A

File Transfer Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

fuser

A

Identify/kill the process that is accessing a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

gawk

A

Find and Replace text within file(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

getopts

A

Parse positional parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

grep

A

Search file(s) for lines that match a given pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

groups

A

Print group names a user is in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

gzip

A

Compress or decompress named file(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
82
Q

hash

A

Remember the full pathname of a name argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
Q

head

A

Output the first part of file(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
84
Q

help

A

Display help for a built-in command *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
85
Q

history

A

Command History

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
86
Q

htop

A

Interactive process viewer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
87
Q

iconv

A

Convert the character set of a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
88
Q

id

A

Print user and group ids

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
89
Q

if

A

Conditionally perform a command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
90
Q

ifconfig

A

Configure a network interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
91
Q

ifdown

A

Stop a network interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
92
Q

ifup

A

Start a network interface up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
93
Q

import

A

Capture an X server screen and save the image to file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
94
Q

install

A

Copy files and set attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
95
Q

ip

A

Routing, devices and tunnels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
96
Q

jobs

A

List active jobs *

97
Q

join

A

Join lines on a common field

98
Q

kill

A

Kill a process by specifying its PID

99
Q

killall

A

Kill processes by name

100
Q

less

A

Display output one screen at a time

101
Q

let

A

Perform arithmetic on shell variables *

102
Q

link

A

Create a link to a file

103
Q

ln

A

Create a symbolic link to a file

104
Q

local

A

Create variables *

105
Q

locate

A

Find files

106
Q

logname

A

Print current login name

107
Q

logout

A

Exit a login shell *

108
Q

look

A

Display lines beginning with a given string

109
Q

lpc

A

Line printer control program

110
Q

lpr

A

Off line print

111
Q

lprint

A

Print a file

112
Q

lprintd

A

Abort a print job

113
Q

lprintq

A

List the print queue

114
Q

lprm

A

Remove jobs from the print queue

115
Q

ls

A

List information about file(s)

116
Q

lsof

A

List open files

117
Q

make

A

Recompile a group of programs

118
Q

man

A

Help manual

119
Q

mkdir

A

Create new folder(s)

120
Q

mkfifo

A

Make FIFOs (named pipes)

121
Q

mkisofs

A

Create an hybrid ISO9660/JOLIET/HFS filesystem

122
Q

mknod

A

Make block or character special files

123
Q

more

A

Display output one screen at a time

124
Q

most

A

Browse or page through a text file

125
Q

mount

A

Mount a file system

126
Q

mtools

A

Manipulate MS-DOS files

127
Q

mtr

A

Network diagnostics (traceroute/ping)

128
Q

mv

A

Move or rename files or directories

129
Q

mmv

A

Mass Move and rename (files)

130
Q

netstat

A

Networking information

131
Q

nice

A

Set the priority of a command or job

132
Q

nl

A

Number lines and write files

133
Q

nohup

A

Run a command immune to hangups

134
Q

notify-send

A

Send desktop notifications

135
Q

open

A

Open a file in its default application

136
Q

op

A

Operator access

137
Q

passwd

A

Modify a user password

138
Q

paste

A

Merge lines of files

139
Q

pathchk

A

Check file name portability

140
Q

ping

A

Test a network connection

141
Q

pkill

A

Kill processes by a full or partial name.

142
Q

popd

A

Restore the previous value of the current directory

143
Q

pr

A

Prepare files for printing

144
Q

printf

A

Format and print data *

145
Q

ps

A

Process status

146
Q

pushd

A

Save and then change the current directory

147
Q

pv

A

Monitor the progress of data through a pipe

148
Q

pwd

A

Print Working Directory

149
Q

quota

A

Display disk usage and limits

150
Q

ram

A

ram disk device

151
Q

rar

A

Archive files with compression

152
Q

rcp

A

Copy files between two machines

153
Q

read

A

Read a line from standard input *

154
Q

reboot

A

Reboot the system

155
Q

rename

A

Rename files

156
Q

renice

A

Alter priority of running processes

157
Q

remsync

A

Synchronize remote files via email

158
Q

return

A

Exit a shell function

159
Q

rev

A

Reverse lines of a file

160
Q

rm

A

Remove files

161
Q

rmdir

A

Remove folder(s)

162
Q

rsync

A

Remote file copy (Synchronize file trees)

163
Q

screen

A

Multiplex terminal, run remote shells via ssh

164
Q

scp

A

Secure copy (remote file copy)

165
Q

sdiff

A

Merge two files interactively

166
Q

sed

A

Stream Editor

167
Q

select

A

Accept keyboard input

168
Q

seq

A

Print numeric sequences

169
Q

set

A

Manipulate shell variables and functions

170
Q

sftp

A

Secure File Transfer Program

171
Q

shift

A

Shift positional parameters

172
Q

shopt

A

Shell Options

173
Q

sleep

A

Delay for a specified time

174
Q

slocate

A

Find files

175
Q

sort

A

Sort text files

176
Q

source

A

Run commands from a file ‘.’

177
Q

split

A

Split a file into fixed-size pieces

178
Q

ssh

A

Secure Shell client (remote login program)

179
Q

stat

A

Display file or file system status

180
Q

strace

A

Trace system calls and signals

181
Q

su

A

Substitute user identity

182
Q

sudo

A

Execute a command as another user

183
Q

sum

A

Print a checksum for a file

184
Q

suspend

A

Suspend execution of this shell *

185
Q

sync

A

Synchronize data on disk with memory

186
Q

tail

A

Output the last part of file

187
Q

tar

A

Store, list or extract files in an archive

188
Q

tee

A

Redirect output to multiple files

189
Q

test

A

Evaluate a conditional expression

190
Q

time

A

Measure Program running time

191
Q

timeout

A

Run a command with a time limit

192
Q

times

A

User and system times

193
Q

touch

A

Change file timestamps

194
Q

top

A

List processes running on the system

195
Q

tput

A

Set terminal-dependent capabilities, color, position

196
Q

trap

A

Run a command when a signal is set(bourne)

197
Q

tr

A

Translate, squeeze, and/or delete characters

198
Q

true

A

Do nothing, successfully

199
Q

tsort

A

Topological sort

200
Q

tty

A

Print filename of terminal on stdin

201
Q

type

A

Describe a command *

202
Q

ulimit

A

Limit user resources *

203
Q

umask

A

Users file creation mask

204
Q

umount

A

Unmount a device

205
Q

unalias

A

Remove an alias *

206
Q

uname

A

Print system information

207
Q

uniq

A

Uniquify files

208
Q

units

A

Convert units from one scale to another

209
Q

unrar

A

Extract files from a rar archive

210
Q

unset

A

Remove variable or function names

211
Q

unshar

A

Unpack shell archive scripts

212
Q

until

A

Execute commands (until error)

213
Q

uptime

A

Show uptime

214
Q

useradd

A

Create new user account

215
Q

userdel

A

Delete a user account

216
Q

usermod

A

Modify user account

217
Q

users

A

List users currently logged in

218
Q

v

A

Verbosely list directory contents (`ls -l -b’)

219
Q

vdir

A

Verbosely list directory contents (`ls -l -b’)

220
Q

vi

A

Text Editor

221
Q

vmstat

A

Report virtual memory statistics

222
Q

wait

A

Wait for a process to complete *

223
Q

watch

A

Execute/display a program periodically

224
Q

wc

A

Print byte, word and line counts

225
Q

whereis

A

Search the users $path man pages and source files for a program

226
Q

which

A

Search the users $path for a program file

227
Q

while

A

Execute commands

228
Q

who

A

Print all usernames currently logged in

229
Q

whoami

A

Print the current user id and name (id-un)

230
Q

wget

A

Retrieve web pages or files via HTTP HTTPS or FTP

231
Q

write

A

Send a message to another user

232
Q

xargs

A

Execute utility passing constructed argument list(s)

233
Q

xdg-open

A

Open a file or URL in the user’s preferred application.

234
Q

yes

A

Print a string until interrupted

235
Q

zip

A

Package and compress (archive) files.

236
Q

. (dot)

A

Run a command script in the current shell

237
Q

!!

A

Run the last command again

238
Q

###

A

Comment / Remark

239
Q

Commands marked *

A

bash built-ins