cheatsheet
redirect
show stdout but redirect all to file
[!NOTE|label:references:]
tips:
echo to stderr
stderr output with filter
or
get output with color code from stderr
time & date
[!TIP|label:see also:]
show cal
synchronize date and time with over ssh
[!NOTE|label:inspired from:]
verify
download and extract
[!NOTE|label:references:]
*.gz*.zip*.tar.gz
check file without extract
extract jar
jarDelete files from JAR without unzip
[!TIP] references:
params shortcuts :
-r
--recursive
-m
--mirror
-l
--level
-k
--convert-links
-K
--backup-converted
-P
--directory-prefix
-nv
--no-verbose
-nc
--no-clobber
-nd
--no-directories
-nH
--no-host-directories
-np
--no-parent
-x
--force-directories
-b
--background
-v
--verbose
-p
--page-requisites
mirror whole website
download directly
with level
with credentials
.wgetrcfrom cmd
ignore credentials
converting links for local viewing
switching off robot exclusion
compress
zip package with dot-file
.[^.]*shopt -s dotglob[!NOTE|label:references:]
.
remove dot-file without skipping '..' '.' issue
skipping '..' '.' issue[!NOTE|label:references:]
turn
dotgloboff
.[^.]*
show 256 colors
[!TIP] see also:
commands
ls
ls[!TIP|label:references]
list numeric names
[!NOTE|label:references:]
PWD's secrets
list the command startsWith
fuzzy find for commands
batch commands
batch rename
/usr/local/bin/renamein OSX[!NOTE|label:references:]
xargs rename
batch move
[!NOTE]
-I replace-str
batch copy
reference:
copy single file to multipule folders
ldapsearch
[!NOTE] enhaanced script
marslo/mytools reference:
search specific user
[!NOTE] info :
ldap url :
ldaps://ldap.mydomain.com:636base search base :
dc=mydomain,dc=comlogin user :
user1/user1passwordsearch :
user2
remove
#.*remove empty lines
remove all
or insert password via interactive mode (
-W)
filter DN field only
DN field onlyfilter SAMAccountName, uid and uidNumber only
SAMAccountName, uid and uidNumber only[!TIP] filter base on base DN (
OU=Person,DC=mydomain,DC=com)
filter particular group
search particular group (
cn=DL-name-group)
get userCertificates
[!NOTE|label:references:]
get cert info
save local
der
crt
others
directory diff
show some command periodically
watch with pipe
clear
use less as tail -f
netcat & nmap-ncat
[!NOTE] references:
install
switch with nmap & netcat
check
check package
alternatives & update-alternatives
install
modify

take screenshots of websites from terminal
[!NOTE|label:references:]
firefox
Last updated
Was this helpful?