|
CentOS Linux Server Guide |
Command Line Operation |
||
Using Semicolon " ;" Symbol
You can use ";" symbol to let one command run after one another, which means the system will run command A then only execute command B. However, even if command A fail, command B will be also excute.
SYNOPSIS command ; command
In the following example, first we change to /demo, then we list the contents at /demo directory. Note: both of the commands is valid
In the following example, first, we change to /etc/passwd (which is file,NOT a directory), then we ls all the files and folders. Note: first command is fail, but the second command is correct
|
||
|
Copyright 2011 http://www.1a-centosserver.com All Rights Reserved All trademarks are the property of their respective owners. Contact Us | Terms of Use | Privacy Policy |