Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: Unix

The UNIX operating system (Eunice) is a powerful multi-user, multi-tasking operating system that supports multiple processor architectures. According to the classification of the operating system, it is a time-sharing operating system. It was first developed by KenThompson, Dennis Ritchie and Douglas McIlroy in 1969 Developed in AT&T’s Bell Labs in the year. At present, its trademark rights are owned by the International Open Standards Organization, and only UNIX systems that conform to a single UNIX specification can use the name UNIX, otherwise it can only be called UNIX-like (UNIX-like)

SHELL determines whether the file directory or file exists

1, file descriptor -e Determine whether the object exists
-d Determine whether the object exists and is a directory
-f Determine whether the object exists, and it is a regular file
-L Determine

October 18, 2021By Simo Unix directory, file, is there, judgment, shellLeave a Comment

Strive_tan shell programming actual combat 2-distribution system

1. Expect applications

1) Transfer files

2) Execute commands remotely, no interaction, no need to enter a password

3) The core of the online shell script (tool) is expect, which i

October 18, 2021By Simo Unix Battle, Distribution, programming, shell, Strive, system, TanLeave a Comment

Shell Training Day8 8.22

while loop

? Syntax while condition; do…; done
? Case 1
#!/bin/bash
while :
do
load=w|head -1|awk -F’load average: ”{print $2}’|cut -d. -f1
if [$load -gt 10 ]
then
top|mail -s “load is high:

October 18, 2021By Simo Unix 8.22, Day, Day8, shell, trainingLeave a Comment

Shell script prints parallelogram, diamond

Shell script printing parallelograms #!/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;j<

October 18, 2021By Simo Unix diamond, parallelogram, print, Script, shellLeave a Comment

VIM command interpretation summary; mount usage and redundant backup disks of redundant disk arrays

IM pt

Configuring the application service in the Linux system is actually modifying its configuration file (there may be multiple configuration files, which contain different parameters), whi

October 18, 2021By Simo Unix array, Backup, Command, Disk, explanation, load, Mounting, redundancy, Settings, Summary, Using, VIMLeave a Comment

Shell for loop demo

test.sh

#!/bin/bash
for skill in Ada Coffe Action Java; do
echo “I am good at ${skill}Script”
done Output

bogon:Desktop macname$ ./test.sh
I am good at AdaScript
I am good at Cof

October 18, 2021By Simo Unix cycle, demonstration, shellLeave a Comment

YUM installer UnicodedecodeError

yum Installer Times Exception UnicodeDecodeError Traceback (most recent call last):
File “/usr/bin/ yum”, line 29, in
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/yu

October 18, 2021By Simo Unix error, installation, program, UnicodeDecodeError, YumLeave a Comment

Shell Programming: Use scripts to achieve NGINX’s guardianship restart

nginx_daemon.sh #!/bin/bash
#

this_pid=$$

while true
do
ps -ef | grep nginx | ​​grep -v grep | grep -v $ this_pid &> /dev/null

if [$? -eq 0 ];then
echo ” nginx is ok”
sleep 3
else

October 18, 2021By Simo Unix automatic, guardianship, Implementation, nginx, programming, Restart, Script, shell, utilizationLeave a Comment

JMeter Beanshell assertion

This article is used to record the problems encountered in writing beanshell assertions.

Question 1: JSONObject not found in namespace

Process: Write the code under beanshell as follows

October 18, 2021By Simo Unix assertion, Beanshell, JMeterLeave a Comment

Command history and automatic logout

Environment variable location

System environment variable location: /etc/profile

User environment variable location: /home/usr

Command history modification

The command histo

October 18, 2021By Simo Unix automatic, Command, History, LogoutLeave a Comment

Posts navigation

Page 1 Page 2 … Page 10
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress