PHP 程序员要不要学习 Linux shell 编程?
回复内容:
学,为啥不学。问题是这跟php程序员有啥关系,喜欢就学,难道你一定要我举出个类似《会shell编程对于php程序员十大好处》来才肯学?
做个程序员要这么功利嘛,喜欢就学呗,shell用好可能不容易,但学个语法又不用多少时间,你多学一点又不会怀孕。 用php写脚本的时候经常有会一些瓶颈(可以写,但是有些东西用shell效率更高),比如对文件的操作,用php来处理相对比较2。我经常用有一些混搭的处理方式,在php里popen一些命令,在shell里执行一个php。还是比较实用的 linux下,shell 或 python 是很常用的脚本语言.
学脚本只为一个理由: Don't Repeat Yourself. 不学shell,也可以解决问题。学了shell你就不用重复的解决问题了。 非常有必要,不要局限在一种语言之内。bash shell比较古怪,可以学python这些比较简单易上手,也更加通用的脚本语言。 Linux Shell就理解为Linux服务器命令集就行了。如果是能接触服务器运维的工作,为了最大限度减少重复工作,把命令打包是不可避免的(当然也可以用Python和Perl代替Shell);否则如果只是作为PHP程序员,反倒没必要去纠结于学不学Shell,学的有多深,在语言语法的层面上,他们没什么本质区别,就像英语和汉语,而只是应用场景不一样。如果开发后台脚本,应用场景是汉语,就不用学习大牛们去精通Shell了,大牛也是干+总结出来的,而不是单单的学出来的。 要,我面试的公司都有linux 和shell的知识考题、

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.
