txt

Linux commands and code snippets collection

  • Home
  • About

Tag Archives: filler

25 Jul

top in Batch Mode

Run top in batch mode


top -b -d 10 -n 3
Binny V A Posted in Command Line, Linux batch, cli, command, filler, Linux, top Leave a comment
22 Jul

Trasfer over the network

Transfer stdin and stdout to and from machines over the network


ssh remote_machine 'cat - > file' < file
Binny V A Posted in Command Line, Linux cat, filler, network, shellfu, ssh, stdin Leave a comment
28 Jun

Use ffmpeg to create a screencast

You can use this command to create a screencast using ffmpeg.


ffmpeg -f x11grab -s 800x600 -i :0.0 /tmp/screencast.mpg
Binny V A Posted in Command Line, Linux command, ffmpeg, filler, Linux, screencast, video Leave a comment
04 Jun

Move files from Folder 2 Levels Deep

Use this command to move files from folders two level deep to the current folder…


mv */*.* .
Binny V A Posted in Command Line, Linux command, copy, file, filler, folder, level, Linux, move, mv 1 Comment
27 May

Post a new Task to Nexty

This is the command used to post a new task to the nexty GTD tool.


curl --basic --user "binnyva:password" --cookie-jar /tmp/nexty-cookies.txt --data-ascii "task=`echo $@|tr ' ' '+'`&layout=cli" "http://nexty.org/tasks/add.php"
Binny V A Posted in Command Line, Linux cli, command, curl, filler, gtd, Linux, nexty, tool Leave a comment
22 May

Show Packages from a Group

Show rpm packages of a group software


rpm -qg "System Environment/Daemons"
Binny V A Posted in Command Line, Linux command, filler, group, Linux, package, rpm, software 2 Comments
11 May

Delete Leading Whitespace

Delete leading whitespace (spaces/tabs/etc) from beginning of each line


ruby -pe 'gsub(/^\s+/, "")' < file.txt
Binny V A Posted in Command Line, Linux, Ruby command, delete, filler, line, Linux, whitespace 1 Comment
23 Apr

Double space a file using Ruby

Double space a file with Ruby using the command


ruby -pe 'puts' < file.txt
Binny V A Posted in Command Line, Linux, Ruby command, double, file, filler, Linux, Ruby, space Leave a comment
21 Apr

List Files Provided by Package

Show list of files provided by a rpm package installed


rpm -ql package_name
Binny V A Posted in Command Line, Linux command, file, filler, Linux, list, package, rpm Leave a comment
19 Apr

git push

Command to push the current repository in git to a online server


git push
Binny V A Posted in Code, Command Line, Linux command, filler, git, Linux, push Leave a comment

Post navigation

← Older posts

Archives

  • October 2017
  • November 2015
  • August 2014
  • November 2013
  • August 2012
  • May 2012
  • March 2012
  • October 2011
  • August 2011
  • January 2011
  • October 2010
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007

Meta

  • Log in
Fruitful theme by fruitfulcode Powered by: WordPress
↑