When learning Io, we have used the file IO function, the standard IO function has implemented a copy of the file,When copying a file, we can consider several ways:A. Single Process copy:Assuming that a file requires a copy of 100 bytes, each time
The command MV for renaming files or folders under Linux can be renamed, and files or folders can be moved.Example: Renaming directory A to BMV A BExample: Move the/a directory to/b and rename to Cmv/a/b/cIn fact, in the text mode to rename the file
First, the system time1. Viewing the system time[Email protected] ~]# datetue Dec 5 16:06:18 CST 20172. Set the system time[[email protected] ~]# date-s 2017/12/5[[email protected] ~]# date-s 16:03:30Second, hardware time1. View Hardware time[Email
Setup of virtual memory for Linux (Ubuntu)Swap space is virtual memory, which is of great use when physical memory is low.View memory Size: free-m//M indicates the displayed byte unit is m (megabytes)Let's add the Swap size to the system.
--Previous time items on the busy, period notes are temporary existence of local txt, these days a little time, sorting out, so that later to view;Linux View memory Usage:Free-mTo release the
Database is on the Linux server, you need to import a DMP using the IMPDP method, with the root user login to the database server, the direct use of the IMPDP command to perform the import operation, prompt: KSH:impdp:not found. After checking that
1. Find the location of the discLs-l/dev |grep cdromMount/dev/sr0/mnt[[email protected]/]# ls-l/dev |grep cdromlrwxrwxrwx 1 root root 3 Dec 4 03:17 cdrom2-SR0CRW-RW----1 roo T cdrom , 1 Dec 4 03:17 SG1BRW-RW----1 root cdrom one ,
1. Get the K line (take k=10 as an example)Note that if the file contains less than 10 rows, it should not be output.# Read from thefile file. txt and output the tenth line to stdout.# solution one, using awkawk 'NR = = Ten' file. txt# solution Two,
Linux file operationsThere are many ways to operate Linux files, here are the following two kinds of
Package, archive, command for files: tar,gzip,bzip2
Edit the contents of the file with the VI editor (VIM is an extension of the VI editor)
IntroducedSometimes we need to open multiple programs at the command line at the same time, but each program will occupy the command line, when you can use Tmux, to the command line interface columns.InstallationYou only need one line of commandapt
IntroductionThe top command is a common performance analysis tool under Linux that shows the resource usage of individual processes in the system in real time, similar to the Task Manager for Windows.Top display system current process and other
The tomcat port number and process under Linux1. View the Tomcat process:Ps-aux | grep tomcat (or Ps-ef | grep Tomcat is OK)You can see that there are now two Tomcat processes running, one with a PID of 9974 and another PID of 23422.2, view the port
The 17th Chapter equipment and module one, equipment type 1. Linux and UNIX systems:Block devicesCharacter deviceNetwork equipment2. Block Device:Usually abbreviated as BLKDEV, it is addressable, in blocks, block sizes vary by device, and block
The first two articles describe the basics of multithreaded programming in a Linux environment, as well as a typical example. This article mainly compares the Linux environment and the Windows environment of multi-threaded programming
Communication between Linux processes:This paper mainly discusses the signal problem.As mentioned in the process and thread (a) under Linux, the Scheduler can dispatch the process in an interrupted manner.However, how does the process know that it
Linux Network Management-remote logon tools and linux Network Management
1. symmetric encryptionExample: compress the file and add a password. If someone else wants to open the file, they only need to know your password. This method is not
Memcached cache database application practices, memcached Cache1.1 database comparison
Cache:Store data in the memory. cache is enabled only when the disk is not competent.
Disadvantages: power-off data loss (dual-power), the purpose of using cache
Install the svn server in Linux.Preface
You are responsible for the project, set up a version control library, and use linux to set up the SVN version controller as the company's project version control library. No nonsense. Go to the topic directly:
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service