Home
California Web Design
eMarketing Solutions
Search Optimization
Multimedia & Graphics
Clients
Consultations
News / Content
Contact SJScott
SEARCH
 
Business Information
  SJScott News and Information
Blogs


useful linux commands PDF Print E-mail
Written by Administrator   
Monday, 08 May 2006
Here is a list of linux commands that help me out.
Maybe they will get you going too.

Count files recursively

find . -not -type d | wc -l

Command line for loop

for i in `seq 6 15`; do echo "showing $i"; done

note: for bsd use the jot command
for i in `jot 10000 1 10000`; do echo $i; done

kill multiple processes

for i in `ps axw |grep postExports |cut -f1 -d '?' |tr -d ' '`; do kill -9 $i; done

Rename Multiple Files in linux

rename .src .c *

Find files over certain size in linux

This one seems to work better: find / -size +200000k -ls


Find and Replace recursively in multiple files


find ./ -type f -exec sed -i 's/tofind/replacewith/' {} ;

Find and remove files/directory


Removes subversion directories
find . -name .svn* -exec sudo rm -Rf {} ;

rm argument list to long


find . -name '*.log' -print0 | xargs -n1000 -0 rm

Linux log out user by killing


skill -KILL -u auser

Rename multiple files with perl


for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done

Unsort unix file command


perl -wne 'printf "%016.0f%s", rand 2**53, $_' < /tmp/ips.txt | sort | cut -b17- > /tmp/ips.txt

Last Updated ( Tuesday, 14 July 2009 )
useful vi commands PDF Print E-mail
Written by Administrator   
Friday, 28 April 2006
I am just using this to hold my useful vi commands

remove carriage returns in vim

also

simple global find replace in vi

:%s/[ctrl+v][return]//g[return]

vi global find replace

:1,$s/REGEX/REPLACE/g

Delete blank lines in vi or vim

:g/^$/d
Last Updated ( Sunday, 14 May 2006 )
playing mp3 in xmms PDF Print E-mail
Written by Administrator   
Monday, 29 August 2005
I wanted to play mp3's under xmms in linux. There seems to be some legal baaheeva keeping them from packaging the ability with the software.

In my last article I pointed out how easy it was to install xmms with a simple yum command. Well its just that easy to install the mp3 component to xmms.
Read more...
Installing XMMS fedora core 4 PDF Print E-mail
Written by LIQID   
Monday, 29 August 2005
I wanted to share how easy it was to install xmms on fedora core 4. I was in a discussion with a friend about the simplicity of windows for linux. He has never really used linux, but he assured me it that windows had to be easier. Today I have pure fact to back up my side of the story. I wanted to xmms media player so I can crank my tunes from sky.fm. A great site.

I know how easy it is to just go hook up some RPM and do an rpm -U and its all done. I tried yum today though. It was great. Below is the command and the ouput just so you can see.

Again this is redundant and people already know how great the nix is but I just had to blog it.
Last Updated ( Monday, 29 August 2005 )
Read more...
Select List Mambo Hack PDF Print E-mail
Written by LIQID   
Friday, 13 May 2005
I am adding my hacks to mambo to help people out with a little more functionality. Here is a way to add a spacer at the top of the function to show -- select -- instead of the first item.
Last Updated ( Friday, 13 May 2005 )
Read more...
 
CASE STUDIES
 
BUSINESS SOLUTIONS
   
   
 
xhtml compliant Get Firefox! Get RSSOwl
SJScott Enterprise
Simi Valley, CA. 93063
(805)501-9286
Webmaster@SJScott.net