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
df
Report file system disk space usage.
26
dirs
Display the list of currently remembered directories.
27
shred
Overwrite a file to destroy its contents.
28
ip
Show/manipulate routing, network devices, interfaces, and tunnels.
29
uniq
Remove duplicate lines from a sorted file.
30
swapon
Enable device or file for paging or swapping.
31
free
Display memory usage.
32
netstat
Network statistics.
33
csplit
Split a file into sections determined by context lines.
34
groups
Print the groups a user is in.
35
zip, unzip
Package and unpack zip archives.
36
swapoff
Disable device or file for paging or swapping.
37
source
Run commands from a file in the current shell.
38
umount
Unmount a filesystem.
39
join
Join lines of two files on a common field
40
bc
An arbitrary precision calculator language.
41
unset
Remove variable or function names.
42
ls
List directory contents.
43
bzip2
A block-sorting file compressor.
44
unrar
Extract files from a RAR archive.
45
dialog
Display dialog boxes from shell scripts.
46
sum
Compute and check checksums.
47
ifconfig
Display or configure a network interface.
48
vdir
Verbosely list directory contents (ls -l -b).
49
nm
List symbols from object files.
50
vmstat
Report virtual memory statistics.
51
rm
Remove files or directories.
52
uname
Display system information.
53
tmux
Terminal multiplexer that allows you to easily switch between several programs in one terminal, detach them, and reattach them.
54
nslookup
Query DNS.
55
dos2unix
Convert text files from DOS to UNIX format.
56
strace
Trace system calls and signals.
57
printenv
Print all or part of the environment.
58
gzip
Compress or decompress named files.
59
pr
Convert text files for printing.
60
ping
Test a network connection.
61
host
DNS lookup utility.
62
pwd
Print the current directory.
63
fmt
Simple text formatters.
64
screen
Multiplex terminal, run remote shells via ssh.
65
sftp
Secure file transfer program.
66
seq
Generate a sequence of numbers.
67
gdisk
Disk partitioning tool, useful for setting up storage optimized for data tasks.
68
mkdir
Create a new directory.
69
ps
Display current processes.
70
symlink
Create a symbolic link to a file.
71
who
Show who is logged on.
72
sed
Stream editor for filtering and transforming text.
73
watch
Run a command repeatedly and display the results.
74
jot
Generate sequential or random data.
75
ftp
File Transfer Protocol client.
76
tac
Concatenate and print files in reverse.
77
ar
Create, modify, and extract from archives.
78
stat
Display detailed information about a file.
79
tty
Print the filename of the terminal connected to standard input.
80
hexdump
Display file in a readable format.
81
cd
Change the current directory.
82
expand
Convert tabs to spaces.
83
touch
Create an empty file.
84
comm
Compare two sorted files line by line
85
tput
Initialize a terminal or query terminfo database.
86
cmp
Compare two files byte by byte.
87
pv
Monitor the progress of data through a pipe.
88
pkill
Send a signal to a process based on attributes like name.
89
locate
Find the location of files and directories.
90
ifup/ifdown
Bring network interface up/down.
91
less
View text files (better navigation than cat).
92
unlink
Remove a file via its filename.
93
tcsh
C shell with file name completion and command line editing.
94
bg
Put a process in the background.
95
jobs
List jobs.
96
popd
Remove the top entry from the directory stack.
97
iwconfig
Configure a wireless network interface.
98
mail
Command to send and receive mail.
99
jq
Lightweight and flexible command-line JSON processor. Great for parsing large JSON files in data science tasks.
100
read
Read a line from the standard input.
101
xargs
Build and execute command lines from standard input
102
w
Show who is logged in and what they are doing.
103
nohup
Run a command in the background even after you've logged out.
104
dpkg
Package manager for Debian-based systems.
105
su
Run a command as another user.
106
nl
Number lines of files.
107
lsof
List open files.
108
dmesg
Display boot and system error messages.
109
split
Split a file into pieces.
110
uptime
Show system uptime.
111
paste
Merge lines of files.
112
reboot
Reboot the system.
113
mount
Mount a filesystem.
114
wget
Network downloader used for fetching datasets or scripts directly from the web.
115
gawk
Pattern scanning and processing language.
116
quotactl
Set disk quotas.
117
xclip
Allows interfacing with the clipboard, useful for scripting and automation.
118
man
Display the manual for a command.
119
which
Locate a command.
120
time
Measure program running time.
121
nano, vi, vim
Text editors.
122
mktemp
Create a temporary file or directory.
123
sort
Sort lines of text files.
124
sync
Flush file system buffers.
125
echo
Display a message or output.
126
more
View text files (simpler than less).
127
chroot
Run command or interactive shell with special root directory.
128
wc
Count words, bytes, lines.
129
pushd
Change the current directory and push the current one onto a stack.
130
pip
Python package installer indispensable for managing Python packages in a data scientist’s workflow.
131
hdparm
Get or set SATA/IDE device parameters.
132
unexpand
Convert spaces to tabs.
133
history
Display command history.
134
date
Display or set the system date and time.
135
cat
Concatenate and display file content.
136
mailq
Print the mail queue.
137
curlftpfs
Mount a FTP host as a local directory.
138
chmod
Change file permissions.
139
quota
Display disk usage and limits.
140
eject
Eject removable media.
141
chown
Change file ownership.
142
usleep
Pause for a specified number of microseconds.
143
ln
Create links between files.
144
crontab
Schedule tasks.
145
whoami
Print the user name.
146
diff
Compare files line by line.
147
exit
Exit the shell.
148
tailf
Follow the growth of a log file.
149
fdisk
Manipulate disk partition table.
150
ispell
Spell check a file.
151
cksum
Print CRC checksum and byte counts.
152
test
Evaluate a conditional expression.
153
head
Output the first part of files.
154
cut
Remove sections from each line of files.
155
hostname
Show or set system host name.
156
iconv
Convert text from one character encoding to another.
157
expr
Evaluate expressions.
158
env
Display, set, or remove environment variables.
159
lshw
Lists detailed information about all the hardware on your machine.
160
nc
Netcat, a simple utility for reading and writing data across network connections.
161
shuf
Generate random permutations.
162
strings
Print the strings of printable characters in files.
163
fg
Put a process in the foreground.
164
rmdir
Remove an empty directory.
165
shutdown
Shutdown the system.
166
clear
Clear the terminal screen.
167
ethtool
Display or change ethernet card settings.
168
alias
Create an alias for a command.
169
rev
Reverse lines of a file.
170
git
Version control system essential for collaboration in data science or engineering projects.
171
top
Display dynamic real-time system stats.
172
sleep
Pause for a specified time.
173
iptables
Packet filter and NAT.
174
umask
Set the default permission for newly created files.
175
lspci
List all PCI devices.
176
sl
Print a steam locomotive.
177
nmap
Network mapper useful for network discovery and security auditing.
178
uudecode
Decode a binary file.
179
mesg
Display (or do not display) messages from other users.
180
id
Print real and effective user and group IDs.
181
killall
Kill all processes with a given name.
182
grep
Search text using patterns.
183
du
Estimate file and directory space usage.
184
apropos
Search the man pages for a keyword.
185
ulimit
Control the resources available to the shell and processes.
186
dig
DNS lookup utility.
187
find
Search for files in a directory hierarchy.
188
python -m http.server
Creates a simple HTTP server in a directory, useful for quickly sharing files or data over a network.
189
quotacheck
Scan a filesystem for disk usage.
190
pgrep
Look up processes based on name and other attributes.
191
iotop
Monitor IO usage.
192
sar
Collect, report, or save system activity information.
193
rsync
Fast, versatile, remote (and local) file-copying tool.
194
htop
An improved version of the top command, providing an interactive process viewer and system monitor.
195
toilet
Display large colorful characters.
196
cp
Copy files or directories.
197
uuencode
Encode a binary file.
198
lzma
A compression utility using the LZMA algorithm.
199
stty
Change and print terminal line settings.
200
ssh
Secure Shell client (remote login program).
201
conda
Package management tool essential for managing environments and packages in Python, especially for data science work.
202
cal
Display a calendar.
203
tar
Archive utility.
204
route
Show / manipulate IP routing table.
205
tr
Translate or delete characters.
206
sudo
Execute a command as the superuser.
207
wall
Write a message to all users.