Tuesday, February 20, 2018

Unix - Linux : Capturing the output from strings command?

$strings file_ASCI > output_name.txt
$strings -n 2 file1 file2
$strings -o welcome_obj
$strings -f /bin/* | grep Copy
Note : strings - print the strings of printable characters in files. Helps to read Binary file

strings -e s your_filename
strings --encoding=s file
strings --bytes=8 yourfilename

Linux/Unix : screen command Usage

screen - screen is a manager with VT100/ANSI terminal emulation

When the screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would.  Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill existing windows, view a list of windows, turn output logging on and off, copy-and-paste text between windows, view the scrollback history, switch between windows  in  whatever  manner you  wish, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the user's terminal.  When a program terminates, screen (per default) kills the window that contained it. If this window was in the foreground, the display switches to the previous window; if none are left, screen exits. Shells usually distinguish between running as login-shell or sub-shell. 
 screen -r
man screen   #For Help

General commands

Every screen command begins with Ctrl-a.
Ctrl-a cCreate new window (shell)
Ctrl-a kKill the current window
Ctrl-a w
List all windows (the current window is marked with "*")
Ctrl-a 0-9Go to a window numbered 0-9
Ctrl-a nGo to the next window
Ctrl-a Ctrl-a
Toggle between the current and previous window
Ctrl-a [Start copy mode
Ctrl-a ]Paste copied text
Ctrl-a ?
Help (display a list of commands)
Ctrl-a Ctrl-\Quit screen
Ctrl-a D (Shift-d)Power detach and logout
Ctrl-a d
Detach but keep shell window open

Friday, February 9, 2018

Friday, February 2, 2018

Live news channels around the worlds

I'm proudly serving you to provide best live News channels.

Top New channels Pay List Down The Follow:





Telugu langues manchu Lakshmi spoof video




Monday, December 12, 2016

Drones are going play big role in future context

DRONES
Approvals From:
US Federal Aviation Administration: FAA

Approval for Aviation to the number to drive drone-ID.



Drones Available with: 
AMA - Academy of Model Aeronautics Approval.
Best drones are DJI mavic  little expensive 
X3, X5 drones
PFD, FPV



Use of the Drones :
geometry of aerial photograph
security drones
Temperature, Wind, Weather, Sensors, Radio signals 
Design with Auto CAD 
NEWS---->

Wednesday, November 9, 2016

Makefile to build the Modules in GCC using Hello world C programming

Telugu machu Fun
Sample C programe file can be used :

Hello.c


#include <linux/kernel.h>
#include <linux/module.h>


static int __init hello_init(void)
{
        printk("The LDD\n");
        printk(KERN_ALERT "Hello world\n ");
        return 0;
}

static void __exit hello_exit(void)
{
        printk("Bye LDD\n");
        printk(KERN_ALERT "Good bye\n");
}

module_init(hello_init);
module_exit(hello_exit);

MODULE_DESCRIPTION("example: Hello LDD");
MODULE_LICENSE("Dual  BSD/GPL");


Sample Makefile file can be used :
bash-3.2# cat Makefile
obj-m := hello.o

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
        rm -rf *.ko *.mod.* .*.cmd *.o .tmp* modules.order Module.symvers
next "make"  command helps to build sample 
Lod the module into kernel :
   /sbin/insmod   hello.ko
logs help to verifies modules are loaded :
  tail /var/log/messages
Virtual file Live details:
  cat /proc/modules

 

Thank you for watching post please Like or comment your input review and follow  my page.

Clock skew detected. Your build may be incomplete.

make[2]: warning:  Clock skew detected.  Your build may be incomplete.


make[2]: Warning: File   file.o

make[2]: warning:  Clock skew detected.  Your build may be incomplete.


Resloved  :  Please update the files time by usin below command.
              #    cd dir
              #    find . -exec touch {} \;
  

Monday, November 7, 2016

Daylight savings Time

Daylight Saving Time (United States) 2018 begins at 2:00 AM on
Sunday, March 11
and ends at 2:00 AM on
Sunday, November 4

Daylight Saving Time (United States) 2017 begins at 2:00 AM on
Sunday, March 12
and ends at 2:00 AM on
Sunday, November 5

Daylight Saving Time (United States) 2016 began at 2:00 AM on
Sunday, March 13
and ended at 2:00 AM on
Sunday, November 6

Daylight Saving Time (United States) 2015 began at 2:00 AM on
Sunday, March 8
and ended at 2:00 AM on
Sunday, November 1

Daylight Saving Time (United States) 2014 began at 2:00 AM on
Sunday, March 9
and ended at 2:00 AM on
Sunday, November 2

Daylight Saving Time (United States) 2013 began at 2:00 AM on
Sunday, March 10
and ended at 2:00 AM on
Sunday, November 3Daylight Saving Time (United States) 2012 began at 2:00 AM on
Sunday, March 11
and ended at 2:00 AM on
Sunday, November 4

Daylight Saving Time (United States) 2011 began at 2:00 AM on
Sunday, March 13
and ended at 2:00 AM on
Sunday, November 6

Daylight Saving Time (United States) 2010 began at 2:00 AM on
Sunday, March 14
and ended at 2:00 AM on
Sunday, November 7

Daylight savings Time

Daylight Saving Time (United States) 2018 begins at 2:00 AM on
Sunday, March 11
and ends at 2:00 AM on
Sunday, November 4

Daylight Saving Time (United States) 2017 begins at 2:00 AM on
Sunday, March 12
and ends at 2:00 AM on
Sunday, November 5

Daylight Saving Time (United States) 2016 began at 2:00 AM on
Sunday, March 13
and ended at 2:00 AM on
Sunday, November 6

Daylight Saving Time (United States) 2015 began at 2:00 AM on
Sunday, March 8
and ended at 2:00 AM on
Sunday, November 1

Daylight Saving Time (United States) 2014 began at 2:00 AM on
Sunday, March 9
and ended at 2:00 AM on
Sunday, November 2

Daylight Saving Time (United States) 2013 began at 2:00 AM on
Sunday, March 10
and ended at 2:00 AM on
Sunday, November 3Daylight Saving Time (United States) 2012 began at 2:00 AM on
Sunday, March 11
and ended at 2:00 AM on
Sunday, November 4

Daylight Saving Time (United States) 2011 began at 2:00 AM on
Sunday, March 13
and ended at 2:00 AM on
Sunday, November 6

Daylight Saving Time (United States) 2010 began at 2:00 AM on
Sunday, March 14
and ended at 2:00 AM on
Sunday, November 7

Friday, November 4, 2016

Open a URL from Command Line


Open a URL from Linux Terminal 

$]  wget -p  https://srpatcha.blogspot.com
$]  wget -p  https://srpatcha.blogspot.com   -O /dev/null

Command to open a URL with options

$]  wget -p  --no-check-certificate   https://srpatcha.blogspot.com   -O /dev/null
$] wget --timestamping   --no-check-certificate   https://srpatcha.blogspot.com   -O /dev/null

Wednesday, November 2, 2016

Best Keypad shortcuts for windows

All time shortcuts to use for windows operations

Windows + Left Arrow to snap a window to left.
Windows + Right Arrow to snap it to the right
Windows + Up Arrow maximizes a window.
Window + Down Arrow minimizes snap.
Shift + F7 look for synonyms online by selecting text.
Change text to bold (CTRL + B) or italics (CTRL + I) or underline (CTRL + U).
CTRL + M/D like wild just to clean up your messy desktop by minimizing everything.
Windows Key + L click requires for locking windows screen anytime, CTRL + ALT + Delete to unlock.
Row select on sheet to delete CTRL + Del. Select the rows below or above by hitting CTRL + Shift + Up or Down Arrow.
CTRL + SHIFT + T Web browsers (Chrome, Firefox, and Internet Explorer) to restore the tab you closed.
ALT + Right Arrow takes you forward while browsing left arrow for forward.
CTRL + Shift + O/B show bookmarks
CTRL + Shift + V the contents of your clipboard will paste into your browser as plain text.
CTRL + Y will redo a previously, CTRL + Z will undo a previously.
CTRL + S save whatever file, CTRL + A shortcut will select all the text in sheet/page.
CTRL + Backspace to delete entire words at once, CTRL + DEL to delete one word in front of the cursor
CTRL + P is the universal command to print, CTRL + F will open the Find bar
ALT/CTRL + TAB switching to be a bit fancier.

WIN + E Helps to open windows explorer/my computer. 

"NCBN Nara chandrababu naidu" CEO Deals to grow Andhra Pradesh

CISCO network and andhra pradesh CEO Chandra babu  Microsoft Kaizala for andhra pradesh  Google Wi-fi for andhra pradesh CEO Micro...