Automatically Start the terminal and run scripts or commands in Ubuntu

Source: Internet
Author: User

The current system used to automatically start the terminal and run scripts or commands in Ubuntu is: Ubuntu 10.04 1. assume that the default directory of the current terminal is:/root; 2. go to the/home/wilson/directory and create the bash file. sh: Date Pwd> aaaa with executable permissions: chmod + x aaaa; 3. in the terminal/root directory, run:/home/wilson/. sh, successful; 4. (gnome) Main Menu-> application-à attachment-> terminal, right-click-> Add to desktop, and get a terminal starter on the desktop. Right-click and choose Properties> basic> command, and modify it to gnome-terminal-x/home/wilson/. sh (must be an absolute path) double-click it to test whether it is successful or not. If the file aaaa is generated in the/root directory, the execution is successful. 5. (gnome) Main Menu-> system-> preference-> startup application-> Create (add)-> copy gnome-terminal-x/home/wilson/. sh to three boxes, OK. After completing the preceding operations, restart reboot to automatically open the terminal and run script a. sh.
 

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.