shell.md
July 15, 2021 · View on GitHub
Bookmarks tagged [shell]
www.codever.land/bookmarks/t/shell
shell - Which terminal command to get just IP address and nothing else? - Stack Overflow
https://stackoverflow.com/questions/8529181/which-terminal-command-to-get-just-ip-address-and-nothin...
On OSX, if you know the interface, you could use - $ ipconfig getifaddr en0
You can write a script that only return the IP like: ...
- tags: shell, osx, linux, ipaddress, networking
awesome-shell
https://github.com/alebcay/awesome-shell#readme
A curated list of awesome command-line frameworks, toolkits, guides and gizmos. Inspired by awesome-php. - alebcay/awesome-shell
- tags: awesome-list, shell
- :octocat: source code
command line - How to list all symbolic links in a directory - Ask Ubuntu
https://askubuntu.com/questions/522051/how-to-list-all-symbolic-links-in-a-directory
find . -type l -ls
To only process the current directory:
find . -maxdepth 1 -type l -ls
Oh My Zsh
Oh-My-Zsh is a delightful, open source, community-driven framework for managing your ZSH configuration.
- tags: shell, zsh, tools
- :octocat: source code
How to symlink a file in Linux? - Stack Overflow
https://stackoverflow.com/questions/1951742/how-to-symlink-a-file-in-linux
To create a new symlink (will fail if symlink exists already):
command line - How to show only hidden files in Terminal? - Ask Ubuntu
https://askubuntu.com/questions/468901/how-to-show-only-hidden-files-in-terminal
The command to show only hidden files:
shell - How to scp a folder from remote to local? - Stack Overflow
https://stackoverflow.com/questions/11304895/how-to-scp-a-folder-from-remote-to-local
scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/
-r Recursively copy entire directories
Pequena introdução ao linux e ao Shell Script
https://www.telecom.uff.br/pet/petws/downloads/apostilas/LINUX.pdf
(PDF)
Introdução ao Shell Script
http://aurelio.net/shell/apostila-introducao-shell.pdf
Aurelio Marinho Jargas (PDF)
The Linux Command Line 中文版
http://billie66.github.io/TLCL/book/zh
Shell 脚本编程30分钟入门
https://github.com/qinjx/30min_guides/blob/master/shell.md
Shell 编程基础
http://wiki.ubuntu.org.cn/Shell%E7%BC%96%E7%A8%8B%E5%9F%BA%E7%A1%80
shell-book
http://me.52fhy.com/shell-book/
How to find all files containing specific text on Linux? - Stack Overflow
http://stackoverflow.com/questions/16956810/how-to-find-all-files-containing-specific-text-on-linux
grep -rnw '/path/to/somewhere/' -e "pattern"
-ror-Ris recursive,-nis line number, and-wstands for match the whole word.-l(lower-case L) can be added to just give th...- tags: linux, shell