07-15-2008
find is a command which is available on every Unix/Linux. The other two are usually available on Linux and Linux like Unix'es.
Else, try them out
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I execute the following:
<pre>
$ whereis ls
ls: /usr/bin/ls /usr/ucb/ls
$ pwd
/bin
$ ls -la ls
-r-xr-xr-x 1 bin bin 18120 Oct 6 1998 ls
</pre>
....but as you can see the 'ls' command is in the /bin directory AS WELL. Why doesn't show up on 'whereis'???
Thanks (3 Replies)
Discussion started by: guest100
3 Replies
2. UNIX for Dummies Questions & Answers
I was wondering what the difference was between the two commands, I understand that locate won't search for files with certain permissions set. Are there any others?
Thanks (1 Reply)
Discussion started by: camerja1
1 Replies
3. Shell Programming and Scripting
I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code:
#! /usr/bin/ksh
Archive=`date +%Y_%m_%d_%T`
find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf... (4 Replies)
Discussion started by: manthasirisha
4 Replies
4. Homework & Coursework Questions
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C Shell Script called "hunt" that takes a filename as it's single parameter and displays the full pathname of every file name that matches,... (1 Reply)
Discussion started by: new2C
1 Replies
5. UNIX for Dummies Questions & Answers
Hola,
Tengo un texto texto1.txt con el siguiente contenido:
Malaga
Cadiz
Sevilla
Hola
Y otro .txt texto2.txt con:
Malaga
Cadiz
Sevilla
Cordoba
Huelva
quiero obtener en otro .txt la diferencia entre estos dos archivos: (14 Replies)
Discussion started by: danietepa
14 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
List all files in ~c12100 directory beginning with "BOZO" that end with either "123" or "456"
2. Relevant... (3 Replies)
Discussion started by: ScarletRavin
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
What is the difference between these two?
find /some_dir -type f -exec chmod 070 {} \;
and
chmod 070 `find /some_dir -type f`
Thanks (5 Replies)
Discussion started by: lamont
5 Replies
8. Shell Programming and Scripting
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
==================================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (1 Reply)
Discussion started by: wnaguib
1 Replies
9. Shell Programming and Scripting
Hi All,
Please find my problem below:
I have a file at two different nodes dev and test
1st find> find /u/dev/local/abc -name ab.dat
--Since this file can be in several sub directories
2nd find> find /u/test/local/abc -name ab.dat
I find my 1st find result and do compare with 2nd... (5 Replies)
Discussion started by: varun_bharadwaj
5 Replies
10. Shell Programming and Scripting
Hi Friends,
I need to find the difference between two files ,
File_1 contained 4 columns, and File_2 contained 4 columns,
I need to find the difference using 1st column,
Or need to find the difference using 3st column, (6 Replies)
Discussion started by: Shenbaga.d
6 Replies
LEARN ABOUT LINUX
geteuid
GETUID(2) Linux Programmer's Manual GETUID(2)
NAME
getuid, geteuid - get user identity
SYNOPSIS
#include <unistd.h>
#include <sys/types.h>
uid_t getuid(void);
uid_t geteuid(void);
DESCRIPTION
getuid() returns the real user ID of the calling process.
geteuid() returns the effective user ID of the calling process.
When a normal program is executed, the effective and real user ID of the process are set to the ID of the user executing the file. When a
set ID program is executed the real user ID is set to the calling user and the effective user ID corresponds to the set ID bit on the file
being executed.
ERRORS
These functions are always successful.
CONFORMING TO
POSIX.1-2001, 4.3BSD.
NOTES
History
In Unix V6 the getuid() call returned (euid << 8) + uid. Unix V7 introduced separate calls getuid() and geteuid().
SEE ALSO
getresuid(2), setreuid(2), setuid(2), credentials(7)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 1993-07-23 GETUID(2)