Skip to main content

Posts

Showing posts with the label GIMP

Linux search string in text files

Search a string or a pattern in text files without opening the file. Grep is a handy tool to find or search a string in text files. Grep is an available tool in Linux and Unix OSes. So if you have some data or information stored in text files and forget where the file is located. As long as you know the keyword or a string to search for, then grep and find command will be your utmost friend. "Grep" and "find" are tools to make life easier to get the information you want but how to use it? Command below will search recursively in the patch specified for all the text files and display the file where the match is found, output will also include the path and the filename. find /home/00_Notes -name '*.txt' -print0 | xargs -0r grep -H 'vanity baseline' The xargs -0r,  is zero r. The above command will search recursively in all folders and subfolders for text files which contains the string "vanity baseline". If a match is ...

GIMP start a new path or selection

Start a new path when creating lines in GIMP. How to create lines in GIMP? Select the pencil tool from the toolbox, make sure the foreground color is not the same with the background color or else the line will be invisible. If you need to specify a brush select the "brush" that you want to use to create the line. Press and hold the "shift key" then select or click the start point. Click the second point (while still holding the shift key) and a line will be drawn. Release the "shift key". If you want to draw again a new line, press "shift key" but you will notice that the line will be connected to the last point that the line was drawn. This will happen if you didn't "double click" on the last point that the line was drawn. Even if you press "esc" key it will still continue from the old point or the new line is still connected to the end of the line that was previously drawn. Or if yo...

Quick way of listing all Active Directory Domain Accounts

Listing all Active Directory Domain Accounts using WMIC By using WMIC you can get all the AD domain accounts very quickly. WMIC is an acronym for Windows Management Instrumentation Command-line Here's how we do it. Just open a command prompt, no need to be an elevated command prompt. At C prompt type: C:\>wmic /node:domain_name /output:d:\usr.txt "useraccount" get Change output drive to any drive you want the output to be exported. Note that the word "USERACCOUNT" has no space, it is  one word. After exporting the file. Open the text or the output file using Excel. Open Excel, press Control+O then the open Window will show. I'm using Excel 2010, so go to All Files and select "Text Files". Follow the on screen instruction and click on "Finish". Then you will be able to see all the "Domain User Accounts", "SIDs", "Description", "Lock Out Status" and other details. ...