The execution result of PHPsystem (ls-l, $ ret_var) is 127. dear friends, the younger brother recently installed a lighttpd on the ARm board and configured PHP5.4, however, when I write a php file to call a local executable file, the returned value is 127, which is an error return value that does not find the command, now I am talking about how to put the test program C test in the directory/usr/bin where the local program can be executed by default.
At the end of the year, two new singles were added to the family. One was a lovely girl, and the other was a handsome 4-disk NAs of buffalo.
The Technology House knows that hard disk mounting or previous Code loss means losing half the life. It is too troublesome to back and forth hard disk backup, and the cost of throwing a server to the IDC is too high, fortunately, the cost of using NAS is now reduced, so we are ready to come to a personal data center.
I originally wanted to DIY one by myself
Modify ls color in Ubuntu
The/etc/directory in Ubuntu does not contain dir_colors.
1. use the dircolors command to view the color value of the current file name in our system, and redirect it to any file in the user directory using the pipeline (Here we create a file. dir_colors file)
Command 1: Cd ~
Command 2: dircolors-P>. dir_colors
2. Open the. dir_colors file with vim, and find "dir 01; 34" // here, 01 indicates high brightness, 34 indicates blue
Linux commandsLS---list files and foldersLs-l---The field meaning of the output resultLs-l uer---Specify the file with parameter informationDRWXRWXRWX---The first field with the table file type (-: file, D: folder), the last 9 bits represents the corresponding permissions: every 3 bits, users, groups, other groups of permissions, each file of the permissions are divided into three bits, respectively, corresponding to read and write execution permissions-rw-r--r--1 Oracle DBA 0 DEC 3 16:40 filena
Feb 03:29 file2.txt-rw-rw-r--. 1 Hadoop hadoop 1048576 Feb 03:20 junk.data-rw-rw-r--. 1 Hadoop Hadoop 02:06 mul_bank.txt-rw-rw-r--. 1 Hadoop Hadoop 08:55 num.txtDrwxrwxr-x. 2 Hadoop hadoop 4096 Feb 03:05 Sub-rw-rw-r--. 1 Hadoop Hadoop 02:11 test.txt"-"-if it is a regular file."D"-if it is a directory"C"-for a character device"B"-for a block device"L"-if it is a symbolic link"S"-for a socket"P"-for a pipechmod u=rwx g=rw o=r filenameHere:U =specifies user PermissionsG =specifies Group permission
1. list files without any options: You cannot see the file type, size, modification date and time, permissions, and links to such specific information.2. list file listing with-l option: can show whether it is a file or a directory, its size, the date of modification, the time, the name of the file or directory, and the properties and permissions of the file.3. List hidden files: List all with '. ' Hidden files at the beginning4. Display in an easy-to-read manner with the-LH option5. List the di
top level directoryMV Test3/*.txt TEST5: Move all. txt files under the test directory to the Test5 folderCpCopy a file or directoryFor example:CP log.log TEST6: Copy the log.log into the TEST6 directoryCatThere are three main features of cat:1. Display the entire file at once2. Create a file from the keyboard3. Merge several files into one fileBy the way, TAC this command, like cat, simply displays the contents of the file from the last line to the first line.-E: Show "$" at the end of each lin
Ls:list, listing the contents of the specified directoryNAMELs-list Directory ContentsSynopsisls [OPTION] ... [FILE] ...The following are common:-A: Displays all files, including hidden files, starting with hidden files.-A: Displays except. and. All files except the-l:--long, a long-form list that displays information about a file-RW-------. 1 root root 1 Mar 11:56 Anaconda.ifcfg.log-: File typeRW-------rw-: File owner's permission, root---: Permissions for a file group---: Permissions for other
Problem Description: Due to my misoperation, the Red Hat Linux environment variables have changed, if the general environment variables have changed can be found on the Internet many solutions, but the hero is on the Linux system to cover the environment variables, such as650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8E/0A/wKiom1iz4cCCGs-mAAAhWYGXEpM676.png-wh_500x0-wm_ 3-wmp_4-s_755218499.png "title=" xrgkm597~ $G) 82B ' k7xes}d.png "alt=" Wkiom1iz4cccgs-maaahwygxepm676.png-wh_50
View Help: Man lsRole: Lists file information in a directory or directoryCommon parameters:-A lists all files-l list File detailsThe meaning of the first character (-Indicates a binary file, D represents a directory, L represents a soft link)-h Displays the file size in the most appropriate unit-D View directory information, ignoring files in directory-I view the inode of a fileThere are a number of parameters, which are listed here in a few common, and can be used to see the specific meaning of
Environment
RedHat Linux 9 + vwware 8.0 + SSH 3.2.9 + Putty 0.62 + MySQL 3.2 + MySQL 5.5
Problem
Linux install MySQL under the following error:
Warning:mysql-server-5.5.28-1.linux2.6.i386.rpm:v3 DSA
Signature:nokey, key ID 5072e1f5
preparing ...
########################################### [100%] You
have more than one PID file:
ls:/var/lib/mysql/*.pid: No that file or d
1. The results of the use of the Ls-l command are as follows (/var/log):
Drwxr-x---2 root adm 4096 2013-08-07 11:03 apache2
drwxr-xr-x 2 root root 4096 2013-08-07 09:43 AppArmor
drwxr-xr-x 2 root 4096 2013-08-07 09:44 apt
-rw-r-----1 syslog adm 16802 2013-08-07 14:30 Auth.log
-rw-r--r--1 root root 642 2013-08-07 11:03 boot.log drwxr-xr-x
2 root
The results of the display are broadly divided into seven col
Putty is a very small SSH client, but Linux, the LS directory's default color output is dark blue, in the putty looks very difficult, so I have a little bit of information to modify, so that the directory color open up a little more comfortable. As follows:
Open/etc/profile
Add the last line:
Declare-x ls_colors= "no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:
The ' ls-l ' command displays a list of files in a long format, with each field meaning the following:
Lrwxr-xr-x 1 zyd users Oct 10:40 sym_link->;/tmp/sym_target
____________________________________________________
|||||||| |
|||||||| +--Symbolic Connection (S_link)
||||||| |
||||||| +-----filename (name)
|||||| |
|||||| +----File last changed (time)
||||| |
||||| +------------length of file in bytes (size)
|||| |
|||| +----------file Genus (group)
We usually use the right button or ls-l see the size of the file is the size of its own content. For example, a text file, which has a AB, then its binary content is actually 61610a, that is, the AB line break, then a total of 3 byte. So the right key and ll see the result should be 3. And with the du result is 4K (varies from person to person), why is different.
This is because Du=disk usage, which refers to how much space the file occupies on the d
the role of the LS command is known with Linux basics
The implementation code is given below
#include
Disclaimer: The normal compilation runs under the Linux Ubuntu.
Today, with the Xshell connection CentOS6.5, when the terminal code is set to: Unicode (UTF-8), the implementation of the service iptables restart command output will be garbled; When the encoding is set to: The default language, LS output will be garbled!
Garbled problem as shown below:
The results of the Execute locale command output are as follows:
Lang=zh_cn. GB18030
lc_ctype= "ZH_CN. GB18030 "
lc_numeric=" ZH_CN. GB18030 "
lc_time=" ZH_
1. RoleView files and directories.2. Usagels "parameter" "Directory Name"Parameters:-A: Lists all files, including hidden files (files starting with.);-A: Lists all files, including hidden files, but not included. With the. These two directories;-D: Lists only the directory itself, not the file data in the directory;-F: Lists the results directly without sorting (LS is sorted by file name by default);-F: According to files, directories and other infor
Summary of Common LS commands under 20145239 LinuxBy learning this week's instructional video and what is required, we find that the LS command has been used for a number of times, but as a beginner, maybe I will only use LS or at most ls-l two usage. But in fact LS is a ver
The Hadoop Ls command adds the limit parameter on the number of display items.Preface
In hadoop's FsShell command, it is estimated that many people commonly use commands such as hadoop fs-ls,-lsr,-cat, and other commands that are almost consistent with the file system in Linux. but if you think about it, there are some differences here. first of all, from the perspective of the scale itself, the single-host
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.