Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 1.85 KB
# Help ------------------------------------------------------------
alias help_rsync="echo -e '${COLOR_LIGHT_PURPLE} rsync help:
${COLOR_NC}To mirror a local folder (result will be /bar/foo): ${COLOR_CYAN}rsync_mirror /foo /bar
${COLOR_NC}To mirror a local folder to remote with ssh: ${COLOR_CYAN}rsync_mirror -e "'"ssh -p 2222"'" foo user@server:~/bar
${COLOR_NC}'"
alias rsync_mirror="rsync -avh --numeric-ids"
alias help_scp="echo -e '${COLOR_LIGHT_PURPLE} scp help:
${COLOR_NC}Copy from remote site (copies bar.zip from remote to local current folder):
${COLOR_CYAN}scp user@server.domain.com:/foo/bar.zip bar.zip
${COLOR_NC}Same, but with port specified:
${COLOR_CYAN}scp -P 2222 user@server.domain.com:/foo/bar.zip bar.zip
${COLOR_NC}'"
alias help_installfromsource="echo -e '${COLOR_LIGHT_PURPLE}Install from source:
${COLOR_NC}tar xvzf package.tar.gz (or tar xvjf package.tar.bz2)
cd package
./configure
make
make install'"
alias help_nmap="echo -e '${COLOR_LIGHT_PURPLE}nmap:
${COLOR_NC}Netzwerk scannen: nmap -sP 192.168.1.1/24
${COLOR_NC}Netzwerk schnell scannen mit OS Erkennung: nmap -sP -A -T4 192.168.1.1/24
'"
alias help_ll="echo -e '${COLOR_LIGHT_PURPLE}ll mit extglob pattern:
${COLOR_CYAN}?(pattern-list)${COLOR_NC}: Matches zero or one occurrence of the given patterns
${COLOR_CYAN}*(pattern-list)${COLOR_NC}: Matches zero or more occurrences of the given patterns
${COLOR_CYAN}+(pattern-list)${COLOR_NC}: Matches one or more occurrences of the given patterns
${COLOR_CYAN}@(pattern-list)${COLOR_NC}: Matches one of the given patterns
${COLOR_CYAN}!(pattern-list)${COLOR_NC}: Matches anything except one of the given patterns
${COLOR_NC}So, for example, if you wanted to list all the files in the current directory that are not .c or .h files, you would do
${COLOR_LIGHT_PURPLE}$ ls -d !(*@(.c|.h))
${COLOR_NC}
'"
You can’t perform that action at this time.