Original URL: http://www.cnblogs.com/peida/archive/2012/11/23/2783762.htmlThe properties of a Linux file or directory include: The file or directory's node, kind, permission mode, number of links, the user and user group to which it belongs, the
Chapter I overview 1.1 prefaceThis chapter discusses the concept of a system, a more profound understanding of computer systems from a hardware and operating system perspective, and a quick tour of the services provided by Linux systems.1.2 System
I. Setting 777 permissions and user rights under LinuxSet all files for WWW directory to be writable 777
sudo chmod 777-r www (here-r is inherited)
Set all file permissions for the WWW directory to user-owned
sudo chown-hr
Linux common command LS New Linux operations, common commands
ls command
Grammar
Options
Parameters
Instance
ls commandThe LS command is used to display the target list, which is a
Linux Tenth Day: (August 15) file lookup and compressionLocate non-real-time lookup (database lookup)/var/lib/mlocate/mlocate.dbLocate-i performing a case-sensitive searchLocate-n N lists only the first n matching itemsLocate Foo search for a file
The properties of a Linux file or directory include: The file or directory's node, kind, permission mode, number of links, the user and user group to which it belongs, the time recently accessed or modified, and so on. The details are as
2. Rights Management Commands2.1 change file or directory permissions: chmod(1) chmod command
Command name
chmod (change the permission MoDE of a file)
Command path
/bin/chmod
Execute
Review:1. Dynamic language
Sys.getrefcount ()//view reference count of objects
Increase the object's reference count scenario
When an object is created: The variable name is created as an assignment, and the variable
When adding
Condition test:1.If condition test expressionString: A dictionary-by-character comparison in alphabetical order (by alphabet or ASCII code)2. True and False in Python:
Any non-0 numeric and non-empty objects are true
Number 0, empty
1. Documentation Basics1. A file is a collection of data stored on external media, the base unit of the file is a byte, and the file contains the number of bytes that are the length of the file. Each byte has a default location, starting at 0, the
Install1. Rolethe Install command works by installing or upgrading software or backing up data, and its use rights are for all users. 2. Format(1) Install [options] ... Source Destination(2) Install [options] ... Source... Catalogue(3) install-d
OS module: interface of the operating systemSource code in lib/os.py
os.name determine the system Os.system () Run the shell command
' nt ': Windows;
' POSIX ': ' Linux/unix '.
os.chdir (path)
problemWhen I tried to run the USB GPS receiver in Linux, I encountered the following error from GPSD. It appears that GPSD does not have access to the USB device (/dev/ttyusb0). How do I permanently modify its permissions on Linux?Solution
Command type:Built-in command (shell built-in), internal, built-inExternal command: There is an executable file corresponding to the command name in a path on the file systemMan COMMAND:Sub-chapters:1: User command (/bin,/usr/bin,/usr/local/bin)2:
1. What are the file management commands on Linux, their commonly used methods and their related examples?Common commands: LS, CD, PWD, mkdir, CP, RM, MV, Touch, cat, more, less, head, tail, Du, WCLS:-A&NBSP: Lists all the files in the current
The properties of a Linux file or directory include: The file or directory's node, kind, permission mode, number of links, the user and user group to which it belongs, the time recently accessed or modified, and so on. The details are as
Set permissions for directories and files under LinuxWhen you set permissions on files and directories, you first need to know what the three digits of the Liunx permission mode mean.Example 777 this three number, the first one represents the owner
1./relative path, root directory1.1 ~/equivalent to user directory/home/yourusername2.CD/To root directory, Cd/dev directly to the Dev directory in the root directory2.1 CD. Return to the upper directory, CD. Still the current directory3. View your
Basic commands
Uname-a-S
Hostname Display host name
To be permanently effective, edit the following file
#vim/etc/sysconfig/network
SSH remote Login
#ssh 10.1.1.54 (logged in as root)
#ssh tom@10.1.1.54 (log in as Tom)
#ssh-y 10.1.1.54
1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
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.