Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)

For linux novice, usually into the linux system does not know what to do, today, to give you some linux commonly used commands.
We are doing this command experimental xshell6, graphic command for everyone to do.

One, first of all when we first use of Linux xshell6 remote control, will be shown in the following figure landing shell interface:
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
root: shows the current system login user
localhost: indicates that the host name
~: indicates the current location - home directory .
#: Administrator on behalf of the user. ($ Indicates if the average user, as shown below).
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)

Second, modify the host name of a favorite:
1. Switch back to the administrator user can be in administrator mode to modify
2. Modify Command + new host name: hosthomectl the SET-hostname Demo
3. Restart
4. Modify the success
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
Third, : analysis command line format
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
1, which refers to the option function commands, divided into:
short form: "-" symbol guidelines, followed by a single letter use. eg:
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
long format: Use the "-" sign guidelines followed by the word. EG:
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
2, the parameters
of the command word processing objects;
can be a filename. Directory (path) or user names, etc;
the number may be zero or more.
Four, LS list shows the contents of a directory.
As we said in Part I install linux tutorial in all file systems are attached to the corresponding directory at the root node, then we enter linux first thing to test this result, this is what we want to learn first a basic command.
Common options:
the -l: displays file details, default in bytes.
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
-a: Show hidden files
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
-A: Show hidden files, but do not show, ".." file "."
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
-R & lt: recursively displaying
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
-aR: show all files including subfolders + recursion.
-h: do the appropriate unit conversions show
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
-i: View file node (serial number)
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
five, cd to switch the working directory, the user change the working directory to another location
Absolute path: the path with the root directory is the absolute path
A relative path: relative location of
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
cd ..: a return path
cd ../../: an upper return path
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
cd ./: current path
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
cd ~: home directory
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
cd -: switching paths are sequentially performed to the cd path
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
six: alias set the alias, the alias mechanism simplify common, long command.
Example:
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
seven: du statistical directory and file space occupancy
Common options:
-a: all statistical, not just statistical directory
-h: Statistics only the total size of the final
-s: only statistics the total size of the occupied space, rather than each folders, file size
-ah: statistics total size of all files and directories size
-sh: the total size of
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
eight: mkdir create a new directory
mkdir: create directory
rmdir: delete the directory
-p: recursively create
-V: display information created
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
nine: touch creates an empty file
-c: existing files when not create
-a: just change the access time of the file
-m: just change the file modification time
-t: set their own file timestamps (. dATE hours seconds), and a, m with the use of
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
how to create a file with information
a:
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
B: creating with vim.
Ten: LN create a link file
-s: Create a soft link
-i: show inode number of the file
-v: displays the results of
hard-wired: (actually your files from the alias)
1, can only file is created, directory can not be applied, the number of hard-linked files is 2
2, the file system can not boast
3, create a hard link will increase the number of files that are linked
soft connection:
1, can be applied to directories
2, across the file system
3 will not increase the number of times connection file
number of characters 4, the size of the specified path contains Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!) Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
eleven: CP copy a file or directory
-r: recursive copy directories
-i: interactive display replication
-f: force replication, cover
-p : keep the source file attributes, timestamps
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
twelve: RM delete files or directories
-i: interactive delete
-f: delete violence
-r: recursive delete
command using a combination of
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
thirteen: mv move a file or directory
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
fourteen: Which look command / file storage directory
can help find external command file
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)
fifteen: the findFind the file or directory
in real-time locate, precisely, to traverse specify all files in a directory to complete the look, slow to support numerous search criteria
Format: find search path to find a standard look to the future processing operation of
search path: The default is the current directory
search criteria: Default all files in the specified path
processing operations: the default is to the screen
Linux basic commands explain "a" (+ Sample description! Must-see white, small books Grab, 90% have seen a collection!)

Guess you like

Origin blog.51cto.com/14475876/2429361