Skip to content

My Command Line

Commands made simple

Monthly Archives: July 2011

Determine block size of a disk

�dumpe2fs /dev/sda1 | grep -i 'block size'

Posted byadminJuly 27, 2011Posted inUncategorized1 Comment on Determine block size of a disk

Retrieving date and time from squid access.log file

perl -pe 's/[\d\.]+/localtime($&)/e' /squid/access.log

Posted byadminJuly 22, 2011Posted inUncategorizedLeave a comment on Retrieving date and time from squid access.log file

Extracting cpio archive

cpio -idv < tree.cpio

Posted byadminJuly 22, 2011Posted inUncategorizedLeave a comment on Extracting cpio archive

Getting the Service Tag of Dell Machines in Linux

dmidecode | grep Serial

Posted byadminJuly 22, 2011Posted inUncategorizedLeave a comment on Getting the Service Tag of Dell Machines in Linux

Linux installation from Network – At boot prompt type

linux askmethod

Posted byadminJuly 22, 2011Posted inUncategorizedLeave a comment on Linux installation from Network – At boot prompt type

Extracting Private Key from .pfx certificate

openssl pkcs12 -in sslcert.pfx -nodes -clcerts -out servercert.pem openssl rsa -in servercert.pem -out serverkey.pem

Posted byadminJuly 21, 2011Posted inUncategorizedLeave a comment on Extracting Private Key from .pfx certificate

Recover corrupt SVN repository

svnadmin recover /var/svn/myrepo

Posted byadminJuly 19, 2011Posted inUncategorizedLeave a comment on Recover corrupt SVN repository

Retreiving the Dell Server Service Tag

dmidecode | grep Serial

Posted byadminJuly 19, 2011Posted inLinuxLeave a comment on Retreiving the Dell Server Service Tag

Forcefully unmount the mount point

umount -l /mountpoint

Posted byadminJuly 19, 2011Posted inUncategorizedLeave a comment on Forcefully unmount the mount point

Sharing VNC Desktop

vncserver -AlwaysShared :1

Posted byadminJuly 19, 2011Posted inUncategorizedLeave a comment on Sharing VNC Desktop

Posts navigation

1 2 Older posts

Recent Posts

  • Disable SELINUX from shell script
  • To retrieve the total GETs and B/w per minute from haproxy log
  • Replacing new line character
  • Get Total Used Bandwidth as per Status from Squid Log
  • To recover deleted files in Linux

Recent Comments

  • Makito39Yt41 on Determine block size of a disk

Archives

  • December 2019
  • May 2019
  • June 2017
  • January 2017
  • December 2016
  • March 2016
  • November 2013
  • September 2013
  • August 2013
  • November 2012
  • September 2012
  • August 2012
  • August 2011
  • July 2011

Categories

  • Linux
  • Uncategorized

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
My Command Line, Proudly powered by WordPress.