Linux has been learning for two years, but still a small white one. Used a lot of commands, but many did not remember, the foundation is not solid, to a large extent, is not taking notes, muddle through.From today onwards, start to organize Linux notes.Linux has--help this option for every command, which is the main way we learn commands.ls command, which is typically used to view files under a file folder.LS has no parameters and displays the non-hidden files in the current directory by default
--list Directory ContentsList information about the FILEs (the current directory by default). Sort entries Alphabetically if none Of-cftuvsux nor--sort. Mandatory arguments to long options is Mandatory for short options too.
Function: Used to display a list of directories.
Syntax: LS (option) (parameter)
Options:
-A: Displays all files and directories (ls default file or direc
How to use the LS and ll for Linux:LL: lists the details of the current file or directory, including information such as time, read and write permissions, size, time, and more, like Windows displays. LL is an alias for "Ls-l". Equivalent to a shortcut in Windows. Can be understood as the function of ll and ls-l is the same, ll is the alias of
1.ls-l listing the details of a file-rw-r--r--1 root root 13572 zabbix-release-3.4-2.el7.noarch.rpm-rw-r--r--: Permissions1: Multiple files using the same inode (for example: 1 files using the same inode)Previous root: Indicates the owner.Post Root: The owning group. There will be multiple users under the group13572: Indicates file size, Unit B remark: 14k=13572bLs-l out of the unit is BLS-LH out of the unit is KB28 2017: Timezabbix-release-3.4-2.el7.
The LS command means that the list displays the name of the file in the current directory. Note that without arguments it displays all files and directories except hidden files. LS is a frequently used command in Linux/ubuntu and is also a very basic command.
1, the meaning of the color of the file name
1) The default color represents the normal file. Example: Install.log
2) green represents the executable
function: LS is shorthand for the English word list, and its function is to list the contents of the catalog. This is one of the most commonly used commands for users, because users need to view the contents of a directory from time to times. This command is similar to the dir command under DOS.Syntax: LS [options] [directory or file]For each directory, the command lists all subdirectories and files in it.
Normally the LS-listed files that want to be directly piped through the RM-RF delete are not valid. At this point, we need to cooperate with the command Xargs use:
For example:Ls-t|tail-10|xargs RM-RF//sorted by time, delete the last 10 files
Of course, you can also use the Ls-lt|tail-100|awk ' {print $} ' |xargs RM-RF the effect is the same as the same, if you want to arrange in reverse chronological ord
Linux directory processing command ls - H humanized display, file size in a convenient form outputOnly LS is executed on the emulator: No option is added to display the files that are visible in the current directory.The only execution of LS-A:A on the emulator is the meaning of all, listing all the files together with the hidden file (which begins
command format and directory processing command LScommand format : command [- options ] [ parameters ]For example : ls-la/etcDescription :1) Individual command use does not follow this format2) when multiple options are available, they can be written together3) Simplified and complete options-A equals --allPS: In Linux ". "represents a hidden file.
Directory processing command:ls
Command name :
ls command#ls-L Display details #ls-i displays the inode number #ls-a displays all Files + directories, including hidden #ls-t sorted in chronological order (the first one is the one you just edited) #ls-H at-l when the user-frien
Tags: GPO path fail put configuration MPI variable ATI source1, first, the MacBook installed in the LS and the GNU LS is not the same, so, to download the installation of the genuine LSBrew Install coreutils //GNU ls in the inside2, because and the Mac LS has a conflict, so, coreutils commands are added ' G ', such
Linux: ls displays the file size in K, M, and G units-Linux general technology-Linux technology and application information. For more information, see the following. Linux: ls displays the file size in K, M, and G units.
# Man ls
......
-H, -- human-readable
Print sizes in human readable format (e.g., 1 K 234 M 2G)
......
#
In linux, set the ls command to display the file and folder colors. use dircolors-p to see the default color settings, including various colors and definitions such as bold, underline, and blinking. The $ LS_COLORS variable sets the color. for example, my settings are as follows: www.2cto.com [pla...
In linux, set the ls command to display the file and folder colors. use dircolors-p to see the default color
Linux naming:1 No more than 255 characters2 Strict case sensitivity3 except/Outside, the other characters are legalNOTE: 1) Avoid the first character of the file name using +-. (Avoid and hide file confusion)2) Avoid file names using spaces, tabs, and @#$%[] () * etc. (to prevent misunderstandings and confusion when using regularization commands later)4 try to name it with meaningful namesLS operation1 LS lists the contents of the current directory2
First, LS introductionThe LS command is a short list that displays the list of files and folders in the specified directory; The LS command can not only view files contained in a Linux folder, but also view file permissions, directory information, etc.Second, the introduction of common options1. Command formatls [options] ... [File | directory]:2. Common options-
Accustomed to terminal does not know the LS command (the same as the Dos dir), often just need to see the contents of the directory size , but ls-h display is only the size of the directory itself, and many of the contentThe two criticisms of LS in this regard have arisen:Small guanxi 1. The information shown is very full, we only extract size and name two column
The directories or files displayed after the default LS is not colored in Solaris, and if you want to make it look like Linux, you need the following steps
First, go to www.sunfreeware.com download coreutils-4.5.4-sol9-sparc-local.gz
Second, the following 10 steps to complete
1. Color output is a feature of the gun version of LS command, so you have to get this version first, you can download sunfreeware
LS lists directory contents1. command formatls [option] [ directory name ]2. Command functionShow current directory contents,iflsspecify a different directory,then the files and directories in the specified directory will be displayed. throughlscommands can not only viewLinuxfiles that the folder contains,and you can view file permissions(include directory, folder, file permissions),View directory information and more. 3. Common Parameters-A, all file
Pinch refers to a count, this cock wire into the Linux industry has been two years, although now in the shell to knock command to hit the wind, but suddenly look back, only to find that in fact, their orders are only smattering.In the start-up phase of using Linux, knocking commands to solve problems quickly, enjoy the sense of accomplishment, this is my motivation, I enjoy the "direct" and the bottom of the system dialogue and solve the problem of the process; However, people can not stay at th
1.LS command:LS used to view files, is a very common command:[[email protected] ~]# LS//does not contain hidden files[[email protected] ~]# ls-a//All files, including hidden files[[email protected] ~]# ls-l//file details[[email protected] ~]# ls-lt//file details, by Mtime De
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.