Search this Website

 

Ubuntu

UNIX

find, make and move file based on username

Category: UNIX-Unix Beginner

find, make and move file based on username

hi there,
i'm new to unix( just 3month used),
i found my new box contained alot of files and directories in /home/box/
i've tried to search script in tis forum and found many of them but, i don't know
how to combine them to make a script, although using pipes.
my tasks are:

1) to scan user dir in /home/user/ - i'm used ls-ld /home/$user/ , $user must be key in.

2) then, grouping all files in scanned dir(in task 1), into group of extensions such as ".txt",".sh",".dat"
i used the ls -l | awk 'begin {fs="."} {print $2}'>index.txt

3) based on index.txt, i'm going to make directories referring to those extensions eg.
/home/user/txtextension
/home/user/datextension/
then move all of files to their extension dir. i'm sorry, i can't find the way to create this script.

i tried all my best to combine all above simple script but, no.3 is quite hard for me.
is there any unix-shell expert have ideas, solutions, or even example scripts to guide me
regards,


Read More...

how to set a path for a command

Category: UNIX-Unix Beginner

how to set a path for a command?

hi,

i install java at fedora core. so to run any java applications i have to write the complety path. for example,

/usr/java/jre1.5.0_11/bin/java "javafile"

i want to write only "java" but it said "command not found".

how i fix this?

thank you very much


Read More...

how to change display resolution in unixv4.0d

Category: UNIX-Unix Beginner

how to change display resolution in unixv4.0d

i would like to know how to change the display resolution in unixv4.0d.

can anyone please help me.

regards,

avgust


Read More...

inappropriate ioctl for device at

Category: UNIX-Unix Beginner


Read More...

list services running in unix

Category: UNIX-Unix Beginner

list services running in unix

we have lost our sys admin and with the dst changes.. i need to make sure all services are re-started on a sun server running sunos 5.9

how can i list what is running and make sure they are running after the dst patches are applied?


Read More...
Multi Directory Unix Forum