bash: commonly used commands

copy a file from one directory to current directory:
cp path/to/file.txt .
. can be used to refer to the current directory.


make a directory and cd into it:
mkdir xx && cd xx
multi operations in one line can be combined with &&.

你可能感兴趣的:(bash: commonly used commands)