Linux screen commands and screen commands
I. background
The system administrator often needs to remotely log on to the Linux server through SSH or telent, and often runs tasks that take a long time to complete, such as system backup and ftp transmission. Generally, we open a remote terminal window for each of these tas
if the compressed file is a very large case.Tar command-Function Description: File package and unpacking.-Command format: tar [parameters] -Common parameters:-F Name: Use name to specify the archive file name or device name.-V: Lists processing details.-C: Used to create a new archive file.-X: Restore the backup file from the archive file.-T: Used to list the file names in an archive file.-Z: Compress files or unzip with GNU Gzip.-Z: Compress files or unzip with compress.-j: Compress files or u
be called by command-line mode, but only for certain commands-the most common are installation and uninstallation commands.Since aptitude has more information than apt-get, it can be said to be more suitable for installation and uninstallation. Apt-cache showpkg pkgs--displays package information. apt-cache dumpavail--Print the list of available packages. Apt-cache Show pkgs--shows the package record, similar to Dpkg–print-avail. Apt-cache pkgnames--
In linux, commands such as ifconfig and shutdown cannot use the _ enable Shell command Java code. Why cannot I use the ifconfig command in RedHat Linux 5? After installing RedHat Linux 5, I use some commands on the terminal, for example, ifcinfig checks the IP address of the
all users. 2. Format: Exit 3. The exit command has no parameters. After running the command, exit the system and enter the logon interface. Last 1. The role of the last command is to display the logon status of recent users or terminals. Its permission is granted to all users. View
Program log, the administrator can know who has or attempted to connect to the system. 2. format: 1ast [-N] [-F file] [-T tty] [-H node] [-I-IP] [-1] [-y] [1D] 3. main Parameter-N: specify the number of output record
The following 13 commands are the most common file processing commands in Linux.
The following 13 commands are the most common file processing commands in Linux.
1) Linux file processin
Use python to execute linux commands and pythonlinux commands
Python version 2.7.12
1. Obtain the execution result of a linux Command. For example, obtain the process tree structure of a PID. the linux Command is pstree-p pid, which can be easily obtained by a module in pyth
displays all currently running processes and their associated sub-processes, and outputs a tree-like format similar to the ' Tree ' command.#Pstreeinit─┬─networkmanager───{networkmanager}├─accounts-daemon───{accounts-daemon}├─acpi_fakekeyd├─acpid├─apache2───10*[apache2]├─at-spi-bus-laun───*[{at-spi-bus-laun}]├─atd├─avahi-daemon───avahi-daemon├─bluetoothd├─colord───{colord}├─colord-sane───*[{colord-sane}]├─console-kit-dae───64*[{
parameters (only applicable to IDE devices)
# Dmesg | grep IDE # view the IDE device detection status at startup
Network
# Ifconfig # view the attributes of all network interfaces
# Iptables-L # View firewall settings
# Route-n # view the route table
# Netstat-lntp # View all listening ports
# Netstat-antp # View all established connections
# Netstat-s # View network statistics
Process
# Ps-ef # View all processes
# Top # Display process status in real time
User
# W # View active users
# Id
of timestamps for-gnu/linux files:Mtime: Last Modification Time (LS–LT)CTime: State Change Time (LS–LC)Atime: Last Access Time (LS–LU)Attention:1. CTime is not a file creation time.2. Overwriting a file will change all three classes of time: Mtime, CTime, and Atime.3. Changing the access rights or the owner of the file will change the CTime and atime of the file.4. Reading a file will change the atime of the file.CP command-Function Description: Copy
[Uncompress]Uncompress Unzip *. Z, and delete the original fileRelated Commands Compress[UNXZ]Unxz ExtractRelated commands xz Xzcat Xzdec[Unzip]Unzip Unzip the file.-X Exclude this file when compressing-ZView the contents of this compressed package-l,-v have the same effect[XZ]XZ Compress the file into XZ format and delete the original file.May need to be installed-D --K Keep the original fileRelated
want to transfer the local 1.bmp to the remote host E:\rose, and renamed to 333.bmpFtp> put 1.bmp/rose/333.bmp (carriage return)b) mputFormat: Mput local-filesTransfers a batch of files from the local host to the remote host.If you want to upload all BMP files in the local current directory to the server E:\roseFtp> cd/rose (carriage return)Ftp> mput *.bmp (return)Note: The upload file is from the current directory of the host. For example, the FTP command running under/root/test will only be u
File management commands for Linux commands CP, MV, RMCP, copy command: Copying files or directoriesGrammar:CP [OPTION] ... [-T] SOURCE DESTCP [OPTION] ... SOURCE ... DIRECTORYCP [OPTION] ...-t DIRECTORY SOURCE ... CP SRC DEST:SRC is a file: If Dest does not exist: Creates a new target file and copies the SRC to the target file; if dest exists: If Dest is a file:
Linux common command-permission management command chmodu/g/o +/-/r/w/x change permission user/user group/other user increase/decrease/Grant read/write/execute r4w2x1rwxr-xr -- 754752: rwxr-x-w-question: if other users have 7 permissions on the file... permission management commands for common Linux Commands
Chmod
.② file belongs to group: a user can belong to more than one group, but it can only have one default group . So when a file is created, its owning group can only be the default group that the user belongs to(2) Umask command
Command name
Umask (The user file-creation mask)
Command path
Shell built-in commands
Execute permissions
All Users
Grammar
Umask [-S]-S Displays the
commands about disk space
Command
Function
Mount
Mount File System
Umount
Uninstalling a file system mounted on a mount
Df
Check the disk space of each hard disk partition and the mounted file system
Du
Show file directory and size
Fsck
Mainly to check and repair the Linux file system
Linux svn commands and svn commands
Check whether svn: svnserve -- version is installed
Close svn service: killall svnserve
Create svn Library: svnadmin create/opt/svn/repos
Configure Automatic Start: Put svnserve-d-r/opt/svn/repos in the last line of/etc/rc. d/rc. local.
Start svn: svnserve-d-r/opt/svn/repos
If svn is already running, run it on another port: svn
Article Title: Basic Concepts and Common commands of Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I accidentally searched for LINUX
Why can't I use the ifconfig command in RedHat Linux 5? After I have installed RedHat Linux 5, I use some commands on the terminal, for example, ifcinfig, to view the IP address of the local machine, the system prompts "command not found". What should I do? If the environment variable is not loaded, modify the environment variable as follows: www.2cto.com 1. Afte
In the previous use of the Windows system know that can set permissions for the file, then this permission is set, before the "Linux---User management command," mentioned in the system, the user is mainly to achieve resource sharing, the file permissions in the system is naturally also for the user to set permissions, If no system does not have a user, then set permissions is meaningless, the file permissions is completely "What a user has permissions
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.