Useful scripts for making developer's everyday life easier and happier, involving java, shell etc.
Daily useful manual operations are made into scripts for easy use, making the daily life of development easier. ?
welcome? ?
The scripts in this warehouse (such as Java
related scripts) are deployed and used in the online production environments of companies such as Alibaba (such as Pioneer Cloud, see awesome-scripts
warehouse description).
If your company has deployed it, you are welcome to collect and notify users through Issue: who's using | user feedback, so as to facilitate mutual exchange of feedback ~ ?
Java
related scriptsShell
related scriptsShell
scriptsShell
learning and development information source <( curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/release-3.x/test/self-installer.sh )
For more downloading and usage methods, see Download and Usage.
Java
related scriptsJava
CPU
performance problems ( top us
value is too high), automatically find out the threads that consume the most CPU
in the running Java
process, and print out their thread stacks to determine the method calls that cause performance problems.jar
files and class
directories. Used to troubleshoot Java
class conflicts.jar
files in the directory.Shell
related scripts Shell
usage enhancement:
CTRL+C
operations and optimizing the operation flow between the command line and other applications.cat
/ tac
outputs file lines, making it easier for the human eye to distinguish different lines.uniq
command, it is enhanced that it can remove duplicates across rows without sorting input.Docker
. Copy the local executable file to the specified docker container
and execute it in docker container
.TCP
connection status. Used to facilitate troubleshooting system connection load problems. Shell
development/testing enhancements:
Terminator
and its printing method, which is used to develop the color output of Shell
.Providing useful functions to users is of course the primary value expression and reason for existence of this library.
But as an open source project, where everyone can see the source code implementation, this library may be able to do more.
Shell/Bash
as a professional programming language for online production environments.Shell/Bash
scripts in production environments, and thus make it possible to demonstrate and improve the quality of Shell
scripts in production environments.PS:
Shell
language, and there will also be many improvements that need to be made in these implementation scripts. We can learn, discuss and practice together ~ ?Python
. Shell
scripts The command line ( CLI
) is a tool that almost every programmer uses every day. Compared with graphical interface tools ( GUI
), the command line has its own irreplaceable convenience and advantages.
What is written on the command line is actually a Shell
script. It can be said that every developer can write Shell
scripts (more or less). In the implementation of functions in the production environment, Shell
scripts are also often seen (although not as common as mainstream languages).
Perhaps it is because of the convenience and popularity of Shell
scripts mentioned above:
Shell
scripts are easily implemented (including Shell
scripts used in production environments);Shell
scripts can often be of low quality, causing serious failures online. Shell
scripts in this library:
Bash 3.2+
uniformly; The reason why Shell
uses Bash
is:
Shell
and is basically deployed by default in different environments.Google
's Shell
Style Guide, it is clearly stated: Bash
is the only shell
script language that is allowed to be executed.Bash
uniformly can avoid the risks and unprofitable complexity caused by the differences between different Shell
.Shell
implementations, sh
, bash
, zsh
, fish
, csh
, tcsh
, ksh
, ash
, dash
...Shell
have various differences, so don’t get into them.Bash
systemically, and I am relatively familiar with it. PS: Although I personally use Zsh
+ oh-my-zsh
for interactive Shell
, I still use Bash
for rigorous Shell
script development.
Shell
learning and development informationSee subdocumentation for more information.
Google Shell Style Guide
| Chinese versionkoalaman/shellcheck
: ShellCheck
, a static analysis tool for shell scriptsmvdan/sh(shfmt)
: shfmt
formats shell programsBash/Shell
best practices and secure programming articlessh
method to execute the script yourself.ctrl + x, ctrl + e
opens a text editor in place to edit the current command line, which is especially useful for complex command lines.Bash
programming! And the second edition in 2016 has been updated to the new version of Bash 4
bash man
| Chinese versionjlevy/the-art-of-command-line
awesome-lists/awesome-bash
: A curated list of delightful Bash scripts and resources.alebcay/awesome-shell
: A curated list of awesome command-line frameworks, toolkits, guides and gizmos.Bash/Shell