ODOC: tail

tail – Output the last part of files. Summary : Print the last 10 lines of each FILE to stdout. With more than one FILE, precede each with a header giving the file name. Examples : $ tail foo.txt — Show only the last 10 Lines. $ tail f1 f2 — Show the last 10 lines of 2 files with small header. $ tail -vn 5 myfile — Show only last 5 Lines with header.

Read More

Break from posts

Many of you might have noticed that I haven’t posted for a few days and also the post count has been decreasing over many days. This is all because I have been preparing for my exams (I am doing my engineering in Computer Science). I have not got enough time to post the ODOC (One Day One Command) series too. Anyway I would try to post if time permits.

Read More

FSDaily launched by Free Software Magazine

Free Software magazine staff launched FSDaily.com which gives daily news about free softwares. They introduced their blog at their website, but weren’t happy with it. So they have launched a seperate site Free Software Daily which is a lot like a news blog written by the authors of Free Software Magazine. Tech Tags: free+software linux gnu/linux free+software+magazine fsdaily free+software+news

Read More

ODOC: sort

sort – Sort lines of text files Summary : Sort the file contents based on options given to it. By default the output is shown in the console. Examples : $ sort — Take the input from stdin, sort and output in stdout. $ sort myfile -o myoutput — Sort the myfile content and store in “myoutput” $ sort -b myfile — Ignore the leading blanks and sort. $ sort -br myfile — Same as above but in reverse order

Read More

ODOC: ulimit

ulimit – Control the resources available to processes Summary : ulimit, Bash Built-in Command, provides control over the resources (Virtual Mem, Max no .of process, Core file size, …) available to processes started by the shell. If Max no. of user process is set to 5, then the particular user can’t run more then 5 process. Examples : $ ulimit -a — Show All current limits. $ ulimit -c — Show core file size (If Core file size is 0, Core file will not be created during the SEG fault).

Read More

New Linux live CD for security professionals

Arudius (formerly Securinix) is a live CD Linux distribution based on Slackware (Minislack) and Linux Live scripts. It contains an extensive set of software tools used by IT security professionals for penetration testing and vulnerability analysis. Its goal is to include the most comlete set of useful security tools and still maintain a small footprint. Tech Tags: arudius linux gnu/linux securinix slackware minislack

Read More

ODOC: nl

nl – Number lines of files Summary : Write each FILE to stdout, with line numbers added. With No FILE or -, read stdin Examples : nl myfile — Writes all non-empty lines with number. nl -ba myfile — Number all lines. nl -ba -l2 myfile — Count 2 empty line as 1 and display nl -nln myfile — Numbers are left justified. nl -nrz myfile — Numbers are right justified and leading zeros

Read More

ODOC: comm

comm – Compare 2 Sorted files line by line Summary : Compare two sorted files F1 and F2 line by line. Examples : $ comm F1 F2 — Output contain 3 col. Col 1 – Uniq to F1, Col 2 – Uniq to F2 and Col 3 – Comman to F1 & F2 $ comm -1 F1 F2 — Suppress lines unique to F1 $ comm -2 F1 F2 — Suppress lines unique to F2

Read More

ODOC: touch

touch – Change File Timestamps Summary : Update the access and modification times of each FILE to the current time. Also used to create a file. Examples : $ touch myfile — change the time stamp to current time. If myfile is not there then touch will create it. $ touch -c myfile — Same as above. But If myfile is not there, then it won’t create it. $ touch -r f1 f2 — Set f1’s time to f2 instead of current time

Read More

ODOC: ls

ls — List directory contents Summary : List the current directory contents and informations. This is one important command you would be using all the time. It is synonymous with the dir command in DOS. Examples : $ ls — Alphabetically list all files and dir $ ls -r — Reverse order $ ls –color=always — Output in color $ ls -F — Files are classified with /@|= symbols

Read More

ODOC: uname

uname – Display system informations Summary:- Display system information like OS Type, Kernel version, Architecture, Host name etc… The uname command will collect the information from the /proc/sys/kernel/{ostype, hostname, osrelease, version, domainname}. Examples :- $ uname — Kernel Name $ uname -n — Show the machine name $ uname -rv — Show kernel’s release & Ver info $ uname -om — Show Arch and OS Type $ uname -a — Show all info

Read More

ODOC: df

df — Disk Free and Usage report Summary:- df command display the amount of disk space available on the FileSystem (FS) containing each file name argument. If no file name is given, the space available on all currently mounted Filesystems are shown. Examples :- $ df — Usage report of all mounted FS. $ df myfile — Display usage report of FS which contain the myfile. $ df /home — Usage report of Home partition

Read More

ODOC: watch

watch – Periodically run and show the output of a program Summary: Watch runs command repeatedly, displaying its output This allows you to monitor the program output change over time. Examples :- $ watch ls — Every 2sec(default time) ‘ls’ is executed and output is showed on the screen. $ watch -n 6 who — Every 6Sec ‘who’ run and list the current users $ watch -d date — Highlight the difference b/w successive updates

Read More

ODOC: ac

ac – Print statistics about users’ connect time Summary: “ac” command will print the users’ connect time details in different formats (Total, Per day, Per user, etc..) Example: $ ac — print total useage $ ac -p — print indv user info $ ac -dy — print daily based report Read: man ac Tech Tags: odoc ac users linux gnu/linux

Read More

ODOC: free

free — Display Information about Memory utilization Summary:- Displays the total amount of free and used physical memory & swap space in the system, as well as the buffers & cache consumed by the kernel. Examples :- $ free — Display the mem info in KB $ free -m — Display the mem info in MB $ free -m -t — Display the total mem info $ free -s 2 — Display the mem info for every 2 sec

Read More

Firefox 1.5 RC1 available

Firefox 1.5 Release Candidate 1 was released, however this is not the final version of the new Firefox 1.5. This RC was released for the developer and testing community for compatibility testing and to solicit feedback. Firefox 1.5 has various new features like: Automated update Faster browser navigation Drag and drop reordering of browser tabs Improvements to popup blocking Clear private data feature Improvements to product usability Answers.com added to search engine list Better accessibility Report a broken website wizard Better support for Mac OS X new support for web standard – SVG, CSS 2, CSS 3 and Javascript 1.

Read More

Gideon – GUI Designer for GTK/C++

Gideon is a versatile GUI designer for GTK/C++. The goal of the project is to provide an easy-to-use RAD tool for C++ programmers who want to create multi-platform GTK-based GUI applications. Gideon is not overloaded but strives to provide all necessary features and remain ‘simple and lightweight’ to end user. Gideon is highly productive for experts and accessible for newcomers. Try Gideon for your GUI programming in C++. Tech Tags: gideon gui gtk c++ gtk/C++ RAD linux windows gnu/linux

Read More