Programming under Linux, often encounter with time/timestamp related things, the following is my previous collection, put here to share.
In the FILE:DBUS-SYSDEPS-UNIX.C
/*** Get Gettimeofday ().** @param tv_sec return location for
When we do remote file operation, we often appear the file service appears uninstall off OH situation. For example
Umount/mnt/net1Umount:/mnt/net1:device is busy.(In some cases useful info about processes which useThe device is found by lsof (8) or
Replace ^m characterUse VI to view some of the text files created under Windows under Linux, sometimes finding "^m" at the end of a line. There are several ways to handle this.
1. Use the Dos2unix command. This gadget is available in the general
1. Display current GPU usage
Nvidia has a Nvidia-smi command-line tool that displays video memory usage:
$ nvidia-smi1 1
Output:2. Periodic output GPU usage
But sometimes we want to not only know the GPU usage at that fixed moment, we want to keep
recently in research Jarsigner APK, found that Jarsigner command was not found, and later found that I was installed after the JDK environment variables are not configuredOn the Internet to find the relevant information,
Linux Signal List
Linux Signal Table
Linux supports POSIX standard signals and real-time signals. The following is a summary of the Linux signal, with detailed details to see Man 7 signal.
The default action has the following meanings:
Term
Experiment 2 BASIC programming under Linux
I. Purpose of the experiment
1. Master Vim Compiler
2. Master the use of GCC compilers
3. Understanding the fork () procedure
second, experimental tools and equipment
1. Experimental equipment: computer
Note: This article is purely a personal point of view, do not guarantee absolute correctness, we welcome criticism and correction, but also I will continue to update and improve the article.
Preface :
I love Linux,linux changed my view of the
1. Download WebLogic 10.36 install Jar pack, Wls1036_generic.jar, execute the following picture command, the premise is already installed JDK and configure environment variable, can refer to http://blog.csdn.net/projectno/ article/details/76187128. 2
U-boot and use of experiment two
"Experimental Purposes"
Learn about U-boot's common commands and the boot of the Linux kernel.
"Experimental Environment"
1, Ubuntu 12.04 release version
2, u-boot-2010.03
3, FS4412 Platform
4, Cross compiler
The official explanation:
Based on the work of FREERDP and Rdesktop, XRDP uses the Remote Desktop Protocol to present a GUI to the user.
The goal of this project are to provide a fully functional Linux Terminal Server, capable of accepting
Linux under the general use of Ifconfig to obtain network interface device information, the input is as follows:
Eth0 Link encap:ethernet hwaddr 52:54:00:fa:9e:91
inet addr:192.168.129.46 bcast:192.168.129.255 mask:255.255.255.0
Inet6 ADDR:FE80::5054
The 1,linux kernel must be configured correctly in the file Systems->network file systems---> (y) Provide NFSV3 client support, (Y) provide NFSv4 NT Support (experimental), these two must be configured correctly. Deny that this error will occur:
Program Description:The program contains the server and client two programs, which use Af_unix to implement the local data flow letter. Using the Af_unix domain actually communicates using a local socket file.Server-side code:#include #include
1. Sed command Introduction
Sed is a non-interactive editor. It does not modify the file unless you use Shell redirection to save the results. By default, all output lines are printed to the screen.
The SED editor processes files (or inputs)
Linux sed command detailed
Brief Introduction
Sed is an online editor that handles a single line of content at a time. When processing, the currently processed rows are stored in a temporary buffer, known as pattern spaces, followed by the SED
When we look at host performance using the top command, we see a zombie keyword in the second row that represents the meaning of the zombie process.
Zombie Process: When a process exits, it sends a SIGCHLD signal to the parent process, always
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of
Install the Configure NTP SERVER on CentOS 6.2
To install NTP:Yum Install NTP
Configure the time sourceVi/etc/ntp.confServer 210.72.145.44Server ntp.api.bzServer 2.centos.pool.ntp.org
Configure NTP services for clients (172.16.0.0/24 network
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