- shell scripting language efficiently run on linux systems
- Mainly used to develop some practical, automated gadgets, rather than to the development of large-scale software with complex business logic
- Basic shell commands Basic commands are also linux operating system, as follows:
effect | example | |
---|---|---|
cd | Change directory | cd / |
ls | List directory contents | ls -al |
cat | View the contents of small files | cat xxx |
chmod | Modify the file or directory permissions | chmod 777 xxx -R |
chown | The owner to change the file or directory or their group | chown mysql:mysql test.txt |
cp | Copy files | cp xxx yyy |
diff | Compare file difference | diff xxx yyy |
find | Query File | find / -name xxx |
mv | Move or rename the existing file or directory | mv xxx yyy |
rm | To delete a file or directory | rm xxx -rf |
touch | Create an empty file | touch xxx |
which | Finding qualified file in $ PATH environment variable settings directory | which find |
ssh | Secure remote login | ssh ip |
grep | Finding qualified file string | One of the Three Musketeers |
wc | Statistical row | wc -l xxx |
date | Host query the current time | date +"%Y-%m-%d %H-%M-%S" |
exit | Exit command | exit |
kill | Kill process | kill -9 pid |
id | View user | id xxx |
ps | Query process case | ps |
sleep | Sleep time (sec) | sleep 5 |
uname | Host information queries | uname -a |
passwd | Change password | passwd user |
ping | Check whether the network through | ping ip |
df | Check disk space usage | df -h |
echo | Standard output command | echo xxx |
pwd | Directory inquiries | pwd |
head | N front row view files | head -10 xxx |
tail | N rows behind view files | tail -10 xxx |
mkdir | Create a directory | mkdir xxx |
seq | Generating the number of all integers from one to another between a number of | seq 1 10 |