Linux Utility Commands and part notes __linux

Source: Internet
Author: User
Tags bz2 extract gz generator gz file xslt tomcat server wsdl

1 Ubnutu Remote access shared folder (for win only)

1. Below the command line

Mount//192.168.1.100/user-o User=admin\\xxx,pass=xxx/mnt/user

Note: 192.168.1.100 is the name of the Windows host and the user is the name of the shared folder. Admin is the Windows host domain name and must be capitalized.

2. Desktop mode

The main folder, press CTRL+L, input such as: smb://192.168.1.100, according to the prompts to enter the account, and then you can access, here, and the command mode, in the desktop mode, if win users do not have any permissions to change (that is, the default permissions) then,. Direct utility IP goes in, you can see any records inside the win data disk.


2 CentOS solution that cannot read and mount NTFS files by default:

Because the CentOS file system primarily uses ext3,4 and XFS file systems, NTFS is not recognized by default (primarily for Windows), and Mount:unknown filesystem type ' NTFS occurs when the Mount mount is used by default Error, the solution is as follows:

First: Install GCC because you need to compile the installation

Second: Install NTFS-3G.

wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgz
     CD ntfs-3g_ntfsprogs-2013.1.13      ./configure      make    
 make Install       NOTE: If you do not have the root user, you need to get sudo root permission to install correctly, or you may get an error.       Next you can mount the disk you want, such as I will sdb6 mount to Mnt/usb      cd/mnt      sudo mkdir USB &nbs P



   MOUNT-T Ntfs-3g/dev/sdb6/mnt/usb       so that you can view the corresponding files under Mnt/usb. 1. The commands and steps required to convert a file in mmap format to mm (Firemind supported format) are as follows:     a. Find Mm2fm.xslt file (in the Documents/mindmaps directory above my Computer, That is, the Firemind storage directory)     b. Find the Document.xml file in the mmap format file that needs to be converted (My computer is generally unzipped in the Documents/mindmaps directory, That is, the Firemind storage directory)     c. Convert using commands: Xsltproc-o documents/mindmaps/qqt.mm documents/mindmaps/mm2fm.xslt documents/mindmaps/document.xml  where Xsltproc commands are many, to see their use effects you can use Xsltproc-h to view Help documents     xsltproc [
Operation instruction [convert file storage and format] [template file] [file required for conversion] 2. The command to scale a picture, which is the command to change the size of a picture, is manipulated using the convert command, as it does with the picture manipulation tool under Windows. Specific orders are as follows:     convert-resize 165/home/wanggang/downloads/_mg_5313.jpg/home/wanggang/downloads/imgs150.jpg     convert [operation instruction] [parameter] [original file] [image after compression] 3. Live access to public network IP command: Curl Http://members.3322.org/dyndns/getip 4. Extract gz file: TAR-ZXVF file & nbsp;  compressed Files: Tar-czf small.tar.gz Small (directory name); Compress and package catalogs      Example one: Pack all the files in the/etc directory into/tmp/etc.tar &nbs
p;   [root@linux ~]# tar-cvf/tmp/etc.tar/etc <== is packaged only, not compressed.     [root@linux ~]# tar-zcvf/tmp/etc.tar.gz/etc <== packaged with gzip compression     [root@linux ~]# t
Ar-jcvf/tmp/etc.tar.bz2/etc <== packaged to bzip2 compression     # Especially note that the file name after the parameter F is taken by itself, and we are accustomed to using. Tar as a recognition.     # If the z parameter is added, the. tar.gz or. tgz is used to represent the gzip-compressed tar file ~     # If the J parameter is added, the. tar.bz2 as the file name. ~     # The above instructions, when executed, will display a warning message:     # "tar:removing leading"/"from member names" That's about the absolute path of the special

Set.
     Example Two: Check the documents in the above/tmp/etc.tar.gz file.     [root@linUX ~]# tar-ztvf/tmp/etc.tar.gz     # because we use gzip compression, so when we look at the files in the tar file,     # will have to add Z to this Parameters.

It's very important.      Example Three: Extract/tmp/etc.tar.gz files under/usr/local/src     [root@linux ~]# cd/usr/local/src &n bsp;   [root@linux src]# tar-zxvf/tmp/etc.tar.gz     # in the case of a preset, we can undo the compression file anywhere. In this example,     # I first transform the working directory underneath the/USR/LOCAL/SRC, and unlock/tmp/etc.tar.gz,     # The directory will be unlocked in/usr/loca What about L/SRC/ETC.

In addition, if you enter/usr/local/src/etc     #, you will find that the file attributes in this directory may be different from the/etc/.      Example four: AT/tmp, I just want to untie the etc/passwd in/tmp/etc.tar.gz     [root@linux ~]# cd/tmp &nbsp ;   [root@linux tmp]# tar-zxvf/tmp/etc.tar.gz etc/passwd     # I can access the files in TAR-ZTVF through Tarfile. Name, if only a single file,     # can be issued in this way. noticed that.

The root directory within the etc.tar.gz/was taken away.
     Example five: Back up all the files in the/etc/and save their permissions.     [root@linux ~]# TAR-ZXVPF/Tmp/etc.tar.gz/etc     # This-p attribute is important, especially if you want to preserve the properties of the original file. 5.RPM installation command: RPM-IVH installation package 6. Speed Test SPEEDTEST_CLI 7.java automatically generate WebService code command wsimport-d/home/wanggang/workspace/web/ Testserver/src-keep-p com.isoftstone.netvista.webbean/home/wanggang/documents/qqtproject/Home Wide Assistant/document/debug Interface xml/ Coainterface_cnunicom.wsdl-d is the basis for generating the WSDL for the file to be generated under what directory   -keep, which can be wsimport-d for the URL or WSDL file. [Generated file directory]- Keep [-P package name (omitted)] [required WSDL template] There is also a Apache CXF WSDL generation tool that goes to the corresponding bin under download to execute the following command wsdl2java-p com.zzzl.webservice.qidian-d d:\cx foutput\src-all  http://game.qidian.com/RemoteWebService/IPreventIndulge.asmx?wsdl parameter Description:-P is package
corresponding to the package-D input directory in Java, generates the. java file in that directory, automatically add the package path for the-p parameter configuration-client generate the code for the client to test the Web service.
-server the code for the build server to start the web  service.
-impl generates the implementation code for the Web service.
-ant  generates build.xml files.
-all generates all files corresponding to the-client-server-impl-ant above.

The last of these URLs corresponds to the WSDL file access address, if the WSDL file is locally available. 8.java automatically generate mybaits code JAVA-JAR/HOME/WANGGANG/DOWNLOADS/MYBATIS-GENERATOR-USAGE/LIB/MYBATIS-GENERATOR-COre-1.3.0.jar-configfile/home/wanggang/workspace/web/broadband/src/main/resources/config.xml-overwrite 9. Tomcat looks at the command to run the startup log, usually using tail, such as the following:   tail-300f xxxx.out This allows you to view the Tomcat server startup and the real-time log of the project runtime, to facilitate lookup errors and regulatory anomalies; 10. Linux deployment project (using Tomcat), if the project encountered a high CPU, but there is no output errors in the log, it may be because the code inside the dead loop or in the presence of some threads have not been timely recovery caused, You can print out specific Java stack log information through the Jstack command, for example:    jstack 89897 >> Log.txt This is the output of the printed log information Log.txt file, can also be directly jstack
 89897 let the log be displayed on the command line    




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.