SHELL Script PPT script Write in it on the premise that it can be used
1, determine the type of all files in the /var/ directory
[[email protected] scripts]# cat filetype.sh
#!/bin/ba
SHELL Script PPT script Write in it on the premise that it can be used
1, determine the type of all files in the /var/ directory
[[email protected] scripts]# cat filetype.sh
#!/bin/ba
testsrv script (SysV script) I. Description: ? CentOS7 already uses Systemd to manage services, and it is recommended to use Systemd to manage services. ubuntu18.04 is now also a Systemd management
Common logical statements
1, for statement:
for variable in list; do
Loop
done
for((初始语句; 判断语句; 值变化语句)); do
Loop
done
case statement:
2, case variable in
PAT1)
I have a path as a string in a shell script, which can be absolute or relative:
/usr/userName/config.cfg< /p> or
../config.cfg
I want to extract the file name (the part after the
Shell script printing isosceles triangle #!/bin/bash
for ((i=1;i<= 9;i++))
do
for ((j=9;j>=i;j- -))
do
echo -n ” ”
done
for ((j=2;j<= i;j++)) do echo -n "*" done for ((j=1
The shell script prints a right-angled triangle #! /bin/ bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done
#! /bin/bash
for ((i=1;i<= 9;i++)) do for ((j=1;j<=$i;j++ )) do echo -n "*" done echo done
Is there a way to use Spotlight to run shell scripts on Mac OS X 10.6? I want to call a shell script directly from Spotlight without opening the terminal. save your shell script with a .command
1. There are many ways to boot Linux. For example, I set mysql boot to start as: chkconfig –level 35 mysqld on
Second, let’s talk about booting through the rc.local file:
1 , First cre
1,User Group Add user
useradd
-u UID
-o -g specify GID or group name
-c comment information
-d home directory
-s shell
-G additional group
-r system user -m home directory, system user
-M
Reference link: https://github.com/SwordfallYeung/BigData_AutomaticDeploy
Automatic deployment: https://gitee.com/lucky110100/sloth/tree/master
Shell common analysis commands and script