L-1-7 other commands in the Linux Basic command

Source: Internet
Author: User
Tags gz file

[Unzip]

Unzip <*.zip> unzip this file

-X <filename> exclude this file when compressing

-Z View the contents of this compressed package-l,-v have the same effect

-------------------------------------------------------------------------------------------

[RPM]

RPM to manage RPM files

-qa query all installed RPM software//co-pipe command grep <softname>

-Q <softname> Query packages are installed

-qi <softname> Query Package information

-I installation package

-IVH install package, and there is a system prompt//v for prompt h for progress bar

-U <path> Upgrade RPM Package

-e <softname> Uninstall this software//additional command--nodeps will uninstall all software that relies on this program

-------------------------------------------------------------------------------------------

[SCP]

Scp

SCP Local_file [Email Protected]_ip:remote_folder

SCP Local_file [Email protected]_ip:remote_file

SCP Local_file Remote_ip:remote_folder

SCP Local_file Remote_ip:remote_file

Example

Scp/home/space/music/1.mp3 [Email Protected]:/home/root/others/music

Scp/home/space/music/1.mp3 [Email Protected]:/home/root/others/music/001.mp3

Scp/home/space/music/1.mp3 Www.cumt.edu.cn:/home/root/others/music

Scp/home/space/music/1.mp3 Www.cumt.edu.cn:/home/root/others/music/001.mp3

* Copy directory:

* Command format:

Scp-r Local_folder [Email protected]_ip:remote_folder

Or

Scp-r Local_folder Remote_ip:remote_folder

Example

Scp-r/home/space/music/[Email protected]:/home/root/others/

Scp-r/home/space/music/www.cumt.edu.cn:/home/root/others/

From remote copy to local, as long as the copy from the local to the remote command of the following 2 parameter Exchange order;


For example:

SCP [Email Protected]:/home/root/others/music/home/space/music/1.mp3

Scp-r www.cumt.edu.cn:/home/root/others//home/space/music/


[Tar]

TAR-ZXVF *.tar.gz Installing the tar.gz file


[Zip]

Zip <*.zip> <filename1>,<filename2> Compress files to a zip file named *

-M Delete the original file after the compression is complete

-R <doc> current directory under directory compression

-j contents of subdirectories are ignored when compressing

-N <.exe> | [<.jpg>] compression is not pressed to list the format of the file

-T Mmddyy compress the file after the specified date

-Y do not compress the original file of the linked file

-<1-9> compression ratio, the higher the number, the higher the compression rate

-X <filename> exclude this file when compressing

Associated Command Unzip



samba*****************

cat/etc/passwd | mksmbpasswd.sh >/etc/samba/smbpasswd To add users of the system to the users of Samba

SMBPASSWD <username> Set the password for Samba users

Service SMB start start; Additional statement iptables-f Setenforce 0

Service SMB Stop Stop

Service SMB Restart restart

Samba configuration file in/etc/samba/smb.conf

*****************************************


L-1-7 other commands in the Linux Basic command

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.