Most Commonly Used BASH Commands Flashcards

1
Q

unshar

A

Unpack shell archive scripts.

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

kill

A

Terminate a process.

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

tail

A

Output the last part of files.

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

tee

A

Read from standard input and write to standard output and files.

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

file

A

Determine file type.

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

od

A

Dump files in octal and other formats.

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

fc

A

Fix command; list or edit and re-execute commands from the history list.

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

at

A

Schedule one-time tasks.

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

last

A

Show listing of last logged-in users.

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

lscpu

A

Provides detailed information about the CPU architecture, useful for understanding resources available for data processing tasks.

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

ssh-keygen

A

Used for SSH key generation, essential for securely connecting to remote servers in tasks involving big data or distributed computing.

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

factor

A

Display the prime factors of a number.

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

ftpwho

A

Show current process information for FTP connections.

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

telnet

A

User interface to the TELNET protocol.

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

awk

A

A full-fledged scripting language often used as a command-line tool for text/data extraction and reporting.

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

patch

A

Apply a diff file to an original.

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

dd

A

Convert and copy a file.

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

mv

A

Move files or directories.

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

fold

A

Wrap each input line to fit in specified width.

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

passwd

A

Change user password.

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

tftp

A

Trivial File Transfer Protocol client.

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

curl

A

Transfer data from or to a server.

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

scp

A

Secure copy (remote file copy program).

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

set

A

Set shell options.

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

df

A

Report file system disk space usage.

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

dirs

A

Display the list of currently remembered directories.

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

shred

A

Overwrite a file to destroy its contents.

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

ip

A

Show/manipulate routing, network devices, interfaces, and tunnels.

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

uniq

A

Remove duplicate lines from a sorted file.

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

swapon

A

Enable device or file for paging or swapping.

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

free

A

Display memory usage.

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

netstat

A

Network statistics.

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

csplit

A

Split a file into sections determined by context lines.

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

groups

A

Print the groups a user is in.

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

zip, unzip

A

Package and unpack zip archives.

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

swapoff

A

Disable device or file for paging or swapping.

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

source

A

Run commands from a file in the current shell.

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

umount

A

Unmount a filesystem.

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

join

A

Join lines of two files on a common field

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

bc

A

An arbitrary precision calculator language.

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

unset

A

Remove variable or function names.

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

ls

A

List directory contents.

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

bzip2

A

A block-sorting file compressor.

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

unrar

A

Extract files from a RAR archive.

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

dialog

A

Display dialog boxes from shell scripts.

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

sum

A

Compute and check checksums.

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

ifconfig

A

Display or configure a network interface.

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

vdir

A

Verbosely list directory contents (ls -l -b).

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

nm

A

List symbols from object files.

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

vmstat

A

Report virtual memory statistics.

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

rm

A

Remove files or directories.

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

uname

A

Display system information.

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

tmux

A

Terminal multiplexer that allows you to easily switch between several programs in one terminal, detach them, and reattach them.

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

nslookup

A

Query DNS.

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

dos2unix

A

Convert text files from DOS to UNIX format.

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

strace

A

Trace system calls and signals.

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

printenv

A

Print all or part of the environment.

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

gzip

A

Compress or decompress named files.

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

pr

A

Convert text files for printing.

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

ping

A

Test a network connection.

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

host

A

DNS lookup utility.

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

pwd

A

Print the current directory.

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

fmt

A

Simple text formatters.

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

screen

A

Multiplex terminal, run remote shells via ssh.

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

sftp

A

Secure file transfer program.

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

seq

A

Generate a sequence of numbers.

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

gdisk

A

Disk partitioning tool, useful for setting up storage optimized for data tasks.

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

mkdir

A

Create a new directory.

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

ps

A

Display current processes.

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

symlink

A

Create a symbolic link to a file.

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

who

A

Show who is logged on.

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

sed

A

Stream editor for filtering and transforming text.

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

watch

A

Run a command repeatedly and display the results.

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

jot

A

Generate sequential or random data.

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

ftp

A

File Transfer Protocol client.

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

tac

A

Concatenate and print files in reverse.

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

ar

A

Create, modify, and extract from archives.

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

stat

A

Display detailed information about a file.

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

tty

A

Print the filename of the terminal connected to standard input.

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

hexdump

A

Display file in a readable format.

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

cd

A

Change the current directory.

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

expand

A

Convert tabs to spaces.

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

touch

A

Create an empty file.

84
Q

comm

A

Compare two sorted files line by line

85
Q

tput

A

Initialize a terminal or query terminfo database.

86
Q

cmp

A

Compare two files byte by byte.

87
Q

pv

A

Monitor the progress of data through a pipe.

88
Q

pkill

A

Send a signal to a process based on attributes like name.

89
Q

locate

A

Find the location of files and directories.

90
Q

ifup/ifdown

A

Bring network interface up/down.

91
Q

less

A

View text files (better navigation than cat).

92
Q

unlink

A

Remove a file via its filename.

93
Q

tcsh

A

C shell with file name completion and command line editing.

94
Q

bg

A

Put a process in the background.

95
Q

jobs

A

List jobs.

96
Q

popd

A

Remove the top entry from the directory stack.

97
Q

iwconfig

A

Configure a wireless network interface.

98
Q

mail

A

Command to send and receive mail.

99
Q

jq

A

Lightweight and flexible command-line JSON processor. Great for parsing large JSON files in data science tasks.

100
Q

read

A

Read a line from the standard input.

101
Q

xargs

A

Build and execute command lines from standard input

102
Q

w

A

Show who is logged in and what they are doing.

103
Q

nohup

A

Run a command in the background even after you’ve logged out.

104
Q

dpkg

A

Package manager for Debian-based systems.

105
Q

su

A

Run a command as another user.

106
Q

nl

A

Number lines of files.

107
Q

lsof

A

List open files.

108
Q

dmesg

A

Display boot and system error messages.

109
Q

split

A

Split a file into pieces.

110
Q

uptime

A

Show system uptime.

111
Q

paste

A

Merge lines of files.

112
Q

reboot

A

Reboot the system.

113
Q

mount

A

Mount a filesystem.

114
Q

wget

A

Network downloader used for fetching datasets or scripts directly from the web.

115
Q

gawk

A

Pattern scanning and processing language.

116
Q

quotactl

A

Set disk quotas.

117
Q

xclip

A

Allows interfacing with the clipboard, useful for scripting and automation.

118
Q

man

A

Display the manual for a command.

119
Q

which

A

Locate a command.

120
Q

time

A

Measure program running time.

121
Q

nano, vi, vim

A

Text editors.

122
Q

mktemp

A

Create a temporary file or directory.

123
Q

sort

A

Sort lines of text files.

124
Q

sync

A

Flush file system buffers.

125
Q

echo

A

Display a message or output.

126
Q

more

A

View text files (simpler than less).

127
Q

chroot

A

Run command or interactive shell with special root directory.

128
Q

wc

A

Count words, bytes, lines.

129
Q

pushd

A

Change the current directory and push the current one onto a stack.

130
Q

pip

A

Python package installer indispensable for managing Python packages in a data scientist’s workflow.

131
Q

hdparm

A

Get or set SATA/IDE device parameters.

132
Q

unexpand

A

Convert spaces to tabs.

133
Q

history

A

Display command history.

134
Q

date

A

Display or set the system date and time.

135
Q

cat

A

Concatenate and display file content.

136
Q

mailq

A

Print the mail queue.

137
Q

curlftpfs

A

Mount a FTP host as a local directory.

138
Q

chmod

A

Change file permissions.

139
Q

quota

A

Display disk usage and limits.

140
Q

eject

A

Eject removable media.

141
Q

chown

A

Change file ownership.

142
Q

usleep

A

Pause for a specified number of microseconds.

143
Q

ln

A

Create links between files.

144
Q

crontab

A

Schedule tasks.

145
Q

whoami

A

Print the user name.

146
Q

diff

A

Compare files line by line.

147
Q

exit

A

Exit the shell.

148
Q

tailf

A

Follow the growth of a log file.

149
Q

fdisk

A

Manipulate disk partition table.

150
Q

ispell

A

Spell check a file.

151
Q

cksum

A

Print CRC checksum and byte counts.

152
Q

test

A

Evaluate a conditional expression.

153
Q

head

A

Output the first part of files.

154
Q

cut

A

Remove sections from each line of files.

155
Q

hostname

A

Show or set system host name.

156
Q

iconv

A

Convert text from one character encoding to another.

157
Q

expr

A

Evaluate expressions.

158
Q

env

A

Display, set, or remove environment variables.

159
Q

lshw

A

Lists detailed information about all the hardware on your machine.

160
Q

nc

A

Netcat, a simple utility for reading and writing data across network connections.

161
Q

shuf

A

Generate random permutations.

162
Q

strings

A

Print the strings of printable characters in files.

163
Q

fg

A

Put a process in the foreground.

164
Q

rmdir

A

Remove an empty directory.

165
Q

shutdown

A

Shutdown the system.

166
Q

clear

A

Clear the terminal screen.

167
Q

ethtool

A

Display or change ethernet card settings.

168
Q

alias

A

Create an alias for a command.

169
Q

rev

A

Reverse lines of a file.

170
Q

git

A

Version control system essential for collaboration in data science or engineering projects.

171
Q

top

A

Display dynamic real-time system stats.

172
Q

sleep

A

Pause for a specified time.

173
Q

iptables

A

Packet filter and NAT.

174
Q

umask

A

Set the default permission for newly created files.

175
Q

lspci

A

List all PCI devices.

176
Q

sl

A

Print a steam locomotive.

177
Q

nmap

A

Network mapper useful for network discovery and security auditing.

178
Q

uudecode

A

Decode a binary file.

179
Q

mesg

A

Display (or do not display) messages from other users.

180
Q

id

A

Print real and effective user and group IDs.

181
Q

killall

A

Kill all processes with a given name.

182
Q

grep

A

Search text using patterns.

183
Q

du

A

Estimate file and directory space usage.

184
Q

apropos

A

Search the man pages for a keyword.

185
Q

ulimit

A

Control the resources available to the shell and processes.

186
Q

dig

A

DNS lookup utility.

187
Q

find

A

Search for files in a directory hierarchy.

188
Q

python -m http.server

A

Creates a simple HTTP server in a directory, useful for quickly sharing files or data over a network.

189
Q

quotacheck

A

Scan a filesystem for disk usage.

190
Q

pgrep

A

Look up processes based on name and other attributes.

191
Q

iotop

A

Monitor IO usage.

192
Q

sar

A

Collect, report, or save system activity information.

193
Q

rsync

A

Fast, versatile, remote (and local) file-copying tool.

194
Q

htop

A

An improved version of the top command, providing an interactive process viewer and system monitor.

195
Q

toilet

A

Display large colorful characters.

196
Q

cp

A

Copy files or directories.

197
Q

uuencode

A

Encode a binary file.

198
Q

lzma

A

A compression utility using the LZMA algorithm.

199
Q

stty

A

Change and print terminal line settings.

200
Q

ssh

A

Secure Shell client (remote login program).

201
Q

conda

A

Package management tool essential for managing environments and packages in Python, especially for data science work.

202
Q

cal

A

Display a calendar.

203
Q

tar

A

Archive utility.

204
Q

route

A

Show / manipulate IP routing table.

205
Q

tr

A

Translate or delete characters.

206
Q

sudo

A

Execute a command as the superuser.

207
Q

wall

A

Write a message to all users.