LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > Spock's Brain
User Name
Password

Notices


Rate this Entry

cheat - A Collection Of Practical Linux Command Examples

Posted 12-22-2017 at 09:38 AM by Habitual
Updated 12-24-2017 at 12:02 PM by Habitual

Cheat is the utility.

After the install, you issue
Code:
cheat tar
and we get
Code:
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

# To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/

# To extract a .gz archive:
tar -xzvf /path/to/foo.tgz

# To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/

# To list the content of an .gz archive:
tar -ztvf /path/to/foo.tgz

# To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz

# To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/

# To extract a .tar in specified Directory:
tar -xvf /path/to/foo.tar -C /path/to/destination/

# To list the content of an .bz2 archive:
tar -jtvf /path/to/foo.tgz

# To create a .gz archive and exclude all jpg,gif,... from the tgz
tar czvf /path/to/foo.tgz --exclude=\*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/

# To use parallel (multi-threaded) implementation of compression algorithms:
tar -z ... -> tar -Ipigz ...
tar -j ... -> tar -Ipbzip2 ...
tar -J ... -> tar -Ipixz ...
Install is easy
Code:
apt install python-pip python-setuptools
pip install cheat
Code:
cheat -l
gives us the list of what cheat recognizes
Code:
7z
ab
alias
ansi
apk
apparmor
apt
apt-cache
apt-get
aptitude
aria2c
asciiart
asterisk
at
awk
bash
bower
bzip2
cat
cd
cheat
chmod
chown
convert
cp
cpdf
crontab
cryptsetup
csplit
cups
curl
cut
date
dd
deb
df
dhclient
diff
distcc
dnf
docker
dpkg
du
emacs
export
ffmpeg
find
for
gcc
gdb
git
gpg
grep
gs
gyb
gzip
hardware-info
head
hg
history
http
hub
iconv
ifconfig
indent
ip
iptables
irssi
iwconfig
journalctl
jq
jrnl
kill
less
lib
ln
ls
lsof
lvm
man
markdown
mdadm
mkdir
more
mount
mv
mysql
mysqldump
nc
ncat
ncdu
netstat
nkf
nmap
nmcli
notify-send
nova
npm
ntp
numfmt
od
openssl
org-mode
p4
pacman
paste
patch
pdftk
perl
pgrep
php
ping
ping6
pip
pkgtools
pkill
popd
ps
psql
pushd
pwd
python
rcs
readline
rename
rm
route
rpm
rpm2cpio
rss2email
rsync
sam2p
scp
screen
sed
shred
shutdown
smbclient
snmpwalk
sockstat
sort
split
sport
sqlite3
sqlmap
ss
ssh
ssh-copy-id
ssh-keygen
stdout
strace
su
svn
systemctl
systemd
tail
tar
tcpdump
tee
tmux
top
tr
trashy
tree
truncate
udisksctl
uname
uniq
unzip
urpm
vagrant
vim
virtualenv
wc
weechat
wget
xargs
xmlto
xrandr
xxd
yaourt
youtube-dl
yum
zip
zoneadm
zsh
Quite a List!

References
https://www.linuxquestions.org/quest...es-4175619151/
and
https://www.2daygeek.com/cheat-a-col...and-examples/#

Enjoy the Goodness!
Posted in Uncategorized
Views 484 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:49 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration