A medium-level Linux user must execute the .sh file frequently. Of course, you can double-click the file directly under the graphical interface, but it is a waste of time.
Now introduce the first method: (under ubuntu)
First you have to open a terminal. Then type sudo su and enter the password. This gives the root user rights. Then find the file (of course, use the command in the terminal to find, you can not open a file manager.) Execute the ./sh file name.
For example, if you have a sh file called 1.sh, this file is in the /tmp directory of the hard disk. To execute it, you should do this:
C code
this It’s OK. The SH file is a similar batch file in the Linux system, so you may need to enter some information after running the sh file. This depends on the content of the sh file.
The second method:
sh xx.sh
Last suggestion: Use
C code:
man sh to see the introduction of sh~
ifconfig -a View all NIC information of Linuxifconfig eth0 down Turn off eth0 network cardifconfig e
Problem Description Solution Reasons for analysis, maybe because my platform migr
Microsoft announced the extension of the Windows Vista and Windows 7 lifecycle. The life cycle of W
◆ Installation and Login: login, shutdown, halt, reboot, install, mount, umount, chsh, exit, last◆ F
Centos6 opens the disk quota function of the EXT4 file system
Using Cinch to make the Mac system also have the Aero Snap feature of Windows 7
Linux shell dynamically generated array series seq tips
Unix Common Commands Detailed Explanation
How do I view the specific release version of Red Hat Enterprise Linux?
10 important Linux ps commands are actually
Install the Linux operating system through the image file on the hard disk
Fedora 17 Chinese font display dot matrix solution
View the file and folder size under Linux. Use df and du command to introduce
XP or Vista "Recycle Bin is damaged" how to solve
How to solve the power surge problem on the USB port of Win10 system?
Win8.1 Update method for recreating the Modern toolbar. Tutorial
Windows XP operating system 1 second shutdown
Solve difficult problems with Windows 7 security mode
How do I look at Windows7 is not good at all, a buddy said
Windows 10 first anniversary update Bug cleaning: Microsoft will launch "Bug Bash"
Windows XP cannot be started after replacing SAM file