|
Home >> Information
|
| SJScott News and Information
|
Blogs 
|
|
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
|
|
Last Updated ( Friday, 18 January 2008 )
|
|
|
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 )
|
|
|
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...
|
|
|
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...
|
|
|
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...
|
|
| |
|
|
| |