Used Linux Shell Command before

Source: Internet
Author: User

--run. SH Job command
Sh. sh


--let Job run behind stage
Nohup ./.sh&

--met error as below when rub. SH job
Error ' XX.sh:line XX:sqlplus:command not found '
Method:source. Bash_profile

--delete file,-f (delete directly without remaind)
rm-f filename

--delete folder
RM-RF FolderName

--rename filename, MV (copy filename1 and renamed Filename2)
MV Filename1 filename2

--copy File/folder
Cp/tellin/scu/temp/home/n-tinggan/scu

--check all process behind
Ps-aux


--yesterday
' Date--date ' last day ' +%y%m%d '

--2 days ago
' Date--date ' 2 days Ago "+%y%m%d"

--3 days ago
' Date--date ' 3 days Ago "+%y%m%d"


--CP 20150810
--the files named like "EVCTRA201503*.UNL" copy to under the Folder/home/n-tinggan
Find. -name "EVCTRA201503*.UNL"-exec cp {}/home/n-tinggan \;

Used Linux Shell Command before

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.