Search this Website

 

Ubuntu

UNIX

ls command for listing the number of files

Category: UNIX-Unix Beginner

ls command for listing the number of files

i've searched the man page for an option for the ls command to print the number of files in a directory. i'm moving files and folders around and thought a count of files would be a quick way to determine if i was missed one somewhere. some "unix's" shells do this i think... maybe linux...

anybody know how to do this real quick

system is: sunos 5.10 generic sun4u sparc sunw,ultra-5_10 ksh

i did this but is comes back with byte count rather than a file count.
ls -l |wc

thanks all )


Read More...

running unix commands remotely in windows box from unix box

Category: UNIX-Unix Beginner

running unix commands remotely in windows box from unix box ?avoid entering password

i am able to run the unix commands in a windows box from a unix box through "ssh" functionality. but whenever the ssh connection is established between unix and windows, password for windows box is being asked.

is there a way to avoid asking password whenever the ssh connection is made? can i store required passwords in a file and then use that file for password prompt whenever ssh is established?


Read More...

a few questions

Category: UNIX-Unix Beginner

a few questions...

i'm new to this unix world !
i login to a remote server (unix [hp-ux]) from an xp machine..

let's say i need to download a window manager, i've decided upon wmaker ..
but how do i go about it?
how do i connect to the internet from my remote unix x-term terminal?

and how do i install it?

or

lets say i have the tar package downloaded in my hdd ..
how will i see the hdd data from unix terminal??

ps : these questions may sound n00bish, but make no mistake, i am a n00b!


Read More...

cron job every 2 min

Category: UNIX-Unix Beginner

cron job every 2 min

hi guys!

i have problem with cron
2,4,6,8,10,12,14,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60 * * * * /usr/local/george/update.py

i try this to schedule the script to run every second min forever but it doesn't work

any idea?

thanks in advance


Read More...

what is so special about tmp

Category: UNIX-Unix Beginner

what is so special about /tmp/

i know that /tmp is used for memory or swap??? and that it should not be full ??? and that files under /tmp are automatically removed after a reboot???

is this info true???


Read More...

ssh between two differnt versions

Category: UNIX-Unix Beginner

ssh between two differnt versions

hi,

i am trying to ssh between two differnt versions on solaris boxes.
the src box has the ssh secure shell 3.1.0 on sparc-sun-solaris2.6 and destination has ssh version sun_ssh_1.0, protocol versions 1.5/2.0.

i am not trying for passwordless connection. i just want to get it working with a password before i proceed with passwordless.

i get the below error
warning: authentication failed.
disconnected; key exchange or algorithm negotiation failed (key exchange failed.).

can anyone suggest what needs to be done to get this working


Read More...

etcsecurityuser file in aix

Category: UNIX-Unix Beginner


Read More...

how can i use pipe command

Category: UNIX-Unix Beginner

how can i use pipe command ?

hi my friends

i have used this command to find files are modified within the past 24 hours

and then many files are shown but i want transfer all these files to special directory by using pipe .

can any one tell me what is the next step ?


Read More...

determining type of file

Category: UNIX-Unix Beginner

determining type of file

hello,

i'm attempting to modify a script so it can be executed via a batch scheduler. part of the script calls a program called direct (which i believe may have something to do with connect direct). i have tried cat and vi on the file; cat returns absolute gibberish, vi states the file is executable.

i need to know the purpose of the program (it's inputs/outputs) and any parameters it requires. short of running it (it's on a live server) is there a way of finding out what type of program it is so i can view the code?

any help would be appreciated!


Read More...

finding funny charaters in a string

Category: UNIX-Unix Beginner

finding funny charaters in a string

hi,

i have got a little problem where some of the files i created had some funny characters e.g space ,"^m" etc inserted in the full file name and which caused our backup script to skip those files.
is it possible to find out if there are any funny charaters in a string ?


Read More...