In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
1. Linux system commands
Ls displays files or directories
-l list file details list
-an all files and directories in the current directory, including hidden all
Mkdir create directory
-p create a directory, if there is no parent directory, create
Touch creates an empty file
Echo creates a file with content
Cat views the contents of the file
More and less display text file content in paging
Rm deletes a file
-r Recursive deletion, subdirectories and files can be deleted
-f forcibly delete
Find searches the file system for a file
Wc counts the number of lines, words and characters in a text.
Grep looks for a string in a text file
Rmdir delete empty directory
Tree digital structure display, but need to install plug-in
Pwd displays the current directory
Ln creates a linked file
Head and tail display the header and tail of the file.
* add standard users
Useradd-m username1 additional create user home directory
Passwd username1
Usermod-a-G sudo username1 is attached to the specified user group
Chsh-s / bin/bash username1 with additional bash shell operation permissions
II. Linux service commands
Service restart
Restart the established system service
Service status
Check whether a service is enabled
Update-rc.d enable
Add a service to boot
Update-rc.d disable
Remove a service from boot self-boot
Update-rc.d enable 5
Add a service to boot and set the startup priority
III. Text editing commands
Vim usage
: set number displays the line number
: set nonumber hides line numbers
/ apache look for apache in the document and press n to jump to the next, shift+n
Yyp copy the line of the cursor and paste
H j k l corresponds to left, bottom, top, and right
Nano command
The command is a class terminal graphical interface that supports combined key operations.
Leafpad
This command opens a file as a command. If not specified, a file is created.
4. Kali tool command
Common format:
Tool name parameter path link address port
For example:
Sqlmap-u URL parameter library parameter table parameter fields
Hydra parameter file parameter file parameter address port
Ssh user name @ address
Mysql-u user-p
5. Linux users and permissions
User and user group management
/ etc/passwd stores user accounts
/ etc/group Storage Group account
/ etc/shadow stores the password of the user account
/ etc/gshadow stores the password of the user group account
Only one user is added to the useradd user name
Userdel username deletes a user
Add a user to the adduser user name (automatically create a home directory)
Groupadd group name create a group
Groupdel group name deletes a group
Passwd root sets the password for root
VI. Compression and decompression of files
Tar command
Unpack: tar zxvf filename.tar
Packaging: tar czvf filename.tar dirname
Gz command
Decompress 1:gunzip filename.gz
Compression: gzip filename
.tar.gz and .tgz
Decompress: tar zxvf filename.tar.gz
Compression: tar zcvf filename.tar.gz dirname
Compress multiple files: tar zcvf filename.tar.gz dirname1 dirname2...
Zip command
Decompress: unzip filename.zip
Compression: zip filename.zip dirname
VII. Installation of software packages
Rpm package-can be installed directly in Red Hat Linux, SUSE, Fedora, but not recognized in Ubuntu
Deb package-is a patent of ubuntu. Double-click the deb package in ubuntu to enter the automatic installation process.
Install the deb package
Dpkg-I installation package name
If it's redhat linux,
Rpm-ivh installation package name
If it is a zip package, extract it directly, and then find a similar link file such as install before you can install it.
VIII. Apt-get
Apt-get [options] command
Common commands:
Update retrieves updated package list information
Upgrade performs an upgrade
Install installs new software packages
Remove uninstall package
Purge uninstalls and clears the configuration of the package
Automove uninstalls all packages that are automatically installed and no longer in use
Dist-upgrade release upgrade
Clean deletes all downloaded package files
Autoclean deletes downloaded old package files
Apt search lookup package information
Install vm virtual machine enhancement tools
Apt install open-vm-tools-desktop fuse Virtual Machine Enhancement tool
10. Install Chinese input method
Apt-get install fcitx fcitx-googlepinyin
Im-config input method configuration fcitx is a framework, Little Penguin
11. Axel multithreaded breakpoint continuation tool
Axel command line under the multithreaded download tool, support breakpoint continuation, the following are axel installation and use tips, several times faster than wget download speed
Basic usage:
Axel [option] [download directory] [download address]
-s [x]: specify the maximum number of bits downloaded per second
N [x]: specifies the number of threads open at the same time
-o f: specify the local output file
-S [x]: search for images and download from X servers server
-N: do not use proxy server
-v: print more status information
-a: print progress information
XII. Encryption tools
Apt-get install network-manager-pptp network-manager-pptp-gnome
Find / etc/NetworkManager/NetworkManager.conf
Change the managed = false of the last line to managed = true
Note that when creating a new PPTP × ×, select "use point-to-point encryption" in the advanced properties.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.