Sponsored Content
Full Discussion: diff between unix and linux
Top Forums UNIX for Dummies Questions & Answers diff between unix and linux Post 302238788 by era on Monday 22nd of September 2008 02:01:10 AM
Old 09-22-2008
There are variations amongst Unices and variations amongst Linuces so the question is not really answerable. Some system administration utilities are very specific to a particular vendor or platform, or even version. The basic shell commands generally work the same, although there are some minor differences in behavior. The manual pages for individual commands should ideally tell you whether they conform to a standard such as POSIX or XPG4 which is usually a sign that they are reasonably portable.

In general, the GNU coreutils (basic commands you are likely to be learning if you are new to Unix / Linux) are somewhat more flexible and feature-rich than what POSIX requires, and thus the non-POSIX extensions are somewhat likely to be missing from the same commands as supplied by a commercial vendor (but usually you can get the GNU coreutils for any platform if you require them, unless there is some silly artificial political / managerial restriction to obstruct you). The GNU suite is installed by default on Linux, but even the free *BSDs have their own versions of the same utilities, with a slightly different set of features and options. (In fact some of the BSD utilities trace their lineage pretty much all the way back to the original AT&T versions, whereas the GNU utilities are newer reimplementations, as a rule.)

Some vendors have a basic feature set which predates POSIX, and they don't want to change it in order to be backwards-compatible with themselves, and so POSIX or XPG4 versions of the basic tools is an optional add-on.

For these and related reasons, truly portable shell scripts are hard to write, but if you restrict yourself to the documented POSIX feature set, your scripts should be fairly portable to any modern POSIX platform. Even experienced scripters sometimes get these things wrong, and if you mainly just want to learn, you don't need to worry about these things at this point.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Diff between Unix and Windows

Hi All, In my work environment, our workis to run N number of SQL statements continously.. Actually we are in testing environment. And for this we write 100 of SQL's and execute each one after another at Windows SQL prompt. Some of the SQL's will be running for about 12 hrs also. ... (1 Reply)
Discussion started by: cheche
1 Replies

2. Shell Programming and Scripting

can we diff 3 files in Unix

Dear ALL I need help in diff command can we do diff of 3 files .. I want to compare 3 files (1 Reply)
Discussion started by: getdpg
1 Replies

3. Shell Programming and Scripting

UNIX Guru's help on diff

Hi , I wanted to find delata between two huge ( 8 GB ) files . Say file_TDY and file_YDY : These files are sorted based on a key . I am using a command : 1)bdiff file_TDY file_YDY > diff_file 2) grep ' ^< ' diff_file > TDY_delta I wanted only the changed records and newly added... (2 Replies)
Discussion started by: ajaybalki
2 Replies

4. UNIX for Advanced & Expert Users

Problem using diff command in unix

Hi, I am trying to do a diff between two files using "diff" command.I dont need my output to be printed using extra symbols ">" and "<" as we usually see for the diff command. Even to excude these characters in each line of the output, my diff output has inturn many symbols ">" and "<". ... (1 Reply)
Discussion started by: pharitha
1 Replies

5. Shell Programming and Scripting

unix diff with numerical precision

Hi, I search a unix utility to diff two files, that takes as argument numerical precision as well. If two files are different only in numbers and the difference is less than precision then the result as they are the same. The precision may be absolute (x1-x2) or relative (x2/x1). Also I need the... (1 Reply)
Discussion started by: stella
1 Replies

6. Red Hat

compare/diff two directory in two different linux/unix machine

Hi, I have two server , one linux and one unix . I want to compare two different directry in them . What command or tool I can use instead of search the dir one by one ??? thank (3 Replies)
Discussion started by: chuikingman
3 Replies

7. Shell Programming and Scripting

.procmailrc and uudeview (put attachments from diff senders to diff folders)

Moderator, please, delete this topic (1 Reply)
Discussion started by: optik77
1 Replies

8. Shell Programming and Scripting

diff command in Unix

Hi I want to compare two rows in unix first value in row is 1.12 while value in other row is 000001.12. if i do normal diff this will come as difference...is it any way to overcome this? (1 Reply)
Discussion started by: sanranad
1 Replies

9. UNIX for Dummies Questions & Answers

Diff in UNIX

Hi guys - I have two files that have random number values and I want to see what is available in file A and not in file B Here is what each file looks like: File A: 1 45 11 788 556 File B: 774 1 5589 788 10025 (4 Replies)
Discussion started by: DallasT
4 Replies
UNAME(1)							   User Commands							  UNAME(1)

NAME
uname - print system information SYNOPSIS
uname [OPTION]... DESCRIPTION
Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type (non-portable) -i, --hardware-platform print the hardware platform (non-portable) -o, --operating-system print the operating system --help display this help and exit --version output version information and exit AUTHOR
Written by David MacKenzie. REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report uname translation bugs to <http://translationproject.org/team/> COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
arch(1), uname(2) Full documentation at: <http://www.gnu.org/software/coreutils/uname> or available locally via: info '(coreutils) uname invocation' GNU coreutils 8.28 January 2018 UNAME(1)
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy