Tags: Linux file management basic commands1. ls commandLS: Lists the contents of the current directory or specifies the directory usage: LS [option] [files_or_dirs] Option:-A: List contains hidden files-L: Show additional Information-r: Directory recursion list -LD: Lists information about a directory or symbolic link-
. And..LS-A does not display:6, how to get help information of the commandBuilt-in commands: Help commands, for example: Help historyExternal command: 1, command--help example: Ifconfig--help2, man ifconfig actual check is (/usr/share/man)Garbled, Input: Export lang=en, and then man ifconfig there is no garbledThe manual is divided into chapters, generally 1-9 chapters, the paragraph of the manual:Name: Nam
-wu8ircyhwtvo/tmp/ssh-wu8ircyhwtvo/agent.3016/tmp/systemd-private-pkqdal/tmp/systemd-private-pkqdal/tmp/tmp/file2.....F. Search by given file type (-type)Find/-type f/matching file type is normal fileFind/-type d/matching file type is directoryFind/-type L/matching file type is soft connection "-links+n represents a file with a specific hard link, +n represents a file with a hard link number greater than n, and-n indicates a file with a hard-link number less than n"Find/-type b/matching file typ
Basic commands for text (CAT, TAC, head, tail, more, less, rev)Viewing the contents of a file catcat-n/etc/passwd can list serial number display file[Email protected] ~]# cat-n/etc/passwd 1root:x:0:0:root:/root:/bin/bash 2bin:x:1:1:bin:/bin:/sbin/nologin 3 Daemon:x:2:2:daemon:/sbin:/sbin/nologin 4adm:x:3:4:adm:/var/adm:/sbin/nologin 5lp:x:4:7:lp:/var/spool/lpd:/s
the basic commands of Linux bridge: (this shows the HUB of the host with two ports)
Brctl addbr mybridge creates the bridge mybridge, and then you can use ifconfig to check that there is an additional mybridge port)
Brctl addif mybridge eth0
Brctl addif mybridge eth1 includes eth0 and eth1 into mybridge)
Then perform the following actions on each port
Notes on basic linux commands0. ls-lhDisplay Properties of files in the current directory in a user-friendly manner1. Link:Hard Link (itself is the file pointer, equivalent to the original file pointer)Ln filename1 filename2Soft link (itself a pointer, creating a pointer to the original file)Ln-s absolute path filename22. Search:File SearchLocate (fast, but only search by file name)Search/var/lib/mlocate in
The free command shows how much memory is being used in the current system in the following format: Free[-m/-g]Displays the current memory usage in units of M[Email protected]/]# free-m Total amount of memory consumed the amount of memory that the process shares in the memory volume of the disk cache CacheWho commands to view the number of users currently logged into the systemLast command to view all system log-in record formats: la
'Unalias aliases~/.BASHRC alias environment variable configuration fileShortcut keysCTRL + C terminationCtrl+l Clear ScreenCtrl+u Delete all characters before the cursorCTRL + a cursor jumps to the beginningCtrl+e cursor jumps to the end of the lineCTRL + Z put the command in the backgroundCtrl+r Search in the history commandHistorical commandHistory [Options] [file]-C Empty History command-W Save History command to file ~/.bash_historyenvironment variable configuration file/etc/profile!n execu
effective, the CP command needs to be preceded by "\", i.e.: # \CP source_file destination_file13.mv:mv-move (rename) filesFormat: MV [OPTION] ... [-T] SOURCE DEST: Single source MobileMV [OPTION] ... SOURCE ... DIRECTORY: Multi-source mobileCommon options:-F,--force: Move the file and force overwrite the file with the same name in the target location;-N,--no-clobber: When moving a file, the source file does not move if it has the same name as the file in the target location;This article from "
Online about the Linux command a lot of detailed, I will put some common commands to collect and paste it, for everyone to view (note: Will simply mention, the specific operation please see the relevant information)1. Add: A. File touch filenameB. folder MkDir folderC. User AddUser new user (after adding "passwd new user" to modify the password, should be added under the root user)2. Delete: A. File rm-f fi
Some basic common simple Linux commands, want more complex and more comprehensive commands can refer to the following documents!Friendship Share Linux Common commands Daquan: Link: http://pan.baidu.com/s/1jI3yVCa Password: IMCVPWD
I've written several articles about how to use the command line interface to manage files on your system, and here are a few basic commands that are common to all distributions.To copy a file or directory to a new location:
CP Path_of_file_1 path_of_the_directory_where_you_want_to_copy/
Copy all files from a directory to a new location (note the slash and asterisk, which indicates all files in
value to be an integer and cannot return a string variable with a return statement.The return value of the function is passed through $ in the program body that called the function. Reserved words to get.For example:Square () {Let "res = $ * $"Return $res}Square $Result=$?12. SelectBASH provides a small statement format that allows the program to quickly design a menu of user interaction choices for a character interface that is implemented by the SELECT statement, with the syntax of the SELECT
history of a RPM packagerpm-qf/etc/httpd/conf/httpd.conf confirm which RPM package is provided for the given fileRPM-QP package.rpm-l displays a list of files provided by a RPM package that has not been installedRPM--import/media/cdrom/rpm-gpg-key Import Public key digital certificateRPM--checksig package.rpm confirming the integrity of a RPM packageRPM-QA Gpg-pubkey confirm the integrity of all RPM packages that have been installedRpm-v package_name
Tags: GPO information routing port Get query virtual terminal attach receiveLinux Basic Network Command listOrganize the list of common network commands under Linux for quick access.Connectivity ofPing Telnet 7--echo Port25--SMTP, for sending mail79--finger provides information about other users on the network.ArpARP i
The command we use when using Linux is nothing more than command + options + parametersExample Shutdown-h now shutdown/is the command to shut down-h/is the option now/is the parameterMain learning File/directory operations: View, create, copy, delete, move, renameView: cd/view ls/list files for the current directory. /return to the previous layer Ls/path list fil
is used to copy files, use the-r option to copy the directory, copy the file attributes and the-P option6.MV to cut files and rename files7.rm used to delete files deleted directory plus-R, delete the same time do not want to ask confirmation plus FEmail: [Email protected]Job naming submission Format: [Name]+[Big Data Three]==================================Ii. File processing commands1.touchThe path to the command:/bin/touchFunction Description: Create an empty fileSyntax: touch [filename]* ?
, you need to download RAR for Linux first
Zip jpg.zip *.jpg zip format compression, you need to download the zip for Linux first
mkdir Creating a folderRM Delete a file or folderalias set don't kill alias = "Relative Command" Example: alias= "Ls-g", Ubuntu set permanent aliasVim ~/.BASHRC Add to the file in the appropriate locationUbuntu config environment variable : in/etc/environment fileP
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.