Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux (Building Blocks (set -o noclobber Prevent overwriting of files when…
Linux
Building Blocks
set -o noclobber
Prevent overwriting of files when using redirection
>>
Append a command's output to a file
>
Redirect a commands output to a file
<
Use a file as input for a command
$()
Plug the output of one command into another command
[command] < [file] > [output]
Combine input and output redirection
||
Run a command only if previous one fails
&&
Run commands only if previous one succeeded
tee
Send output to a file and stdout at the same time
;
Run several commands sequentially
Manipulating Text files with Filters
uniq
Remove duplicate lines in a file
tr
Substitute selected characters with others
sort
Sort the contents of a file
sed
transform text in a file
cut
Select an entire column of data in a delimited file
awk
Print specific fields in a file
nl
Number lines in a file
wc
Count the number of lines, words and characters in a file
Learning about Commands
info
whereis
man
which
whatis
type
creation
cp
mv
mkdir
ln
touch
Viewing Files
less/more
View text files a screen at a time
head
view first 10/n lines of a file
cat
Viewing and concatenating files
tail
View last 10/n lines in a file
file
Figure out a file's type
Navigation
pwd
cd
ls
Ownership and Permissions
chown
Change Owner
chmod
Change Permissions
chgrp
Change Group
destruction
rm
rmdir