Question:
Difference Between Unix and Linux commands?
1970-01-01 00:00:00 UTC
Difference Between Unix and Linux commands?
Eight answers:
jplatt39
2008-03-26 05:39:25 UTC
There is one important thing to take into consideration. The GNU tools, which Linux depends on to run, were created in Unix and you get essentially the same code for gcc, tar, and so forth in each. My first introduction to GNU tools in fact, was about 5 years before Linux was invented when I was doing Word Processing and other secretarial work at an engineering firm which had them installed on their system. That was also where I learned to use vi, which is not per se GNU software, but is also held in common between Unix and Linux -- as is X-Windows. which I learned how to use when I went back to college. There are a few commands and so forth (you have to belong to the group wheel to get administrator's privileges in UNIX) that are subtly different, but it isn't even worth a quick discussion. All I can say is get a Unix book which discusses Linux -- anywhere. Check second-hand bookstores and your local library.
2016-10-19 07:07:14 UTC
Unix Vs Linux Commands
2016-03-16 05:50:54 UTC
No, they are not programming languages. UNIX is an operating system. Linux is a free, open source kernel.
bill
2015-11-30 14:03:02 UTC
Partition

1) Add the hard drive

2) Cd /media

3) fdisk /dev/sdb, M, N, P, Enter, 22,000,000

fdisk /dev/sdb, M, N, P, Enter, Enter, Enter



4) mkdir newDisk1

mkdir newDisk2



5) mke2fs /dev/sdb1

mke2fs /devsdb2



6) gedit /etc/fstab



/dev/sdb1 /media/newDisk1 ext2 defaults 00

/dev/sdb2 /media/newDisk2 ext2 defaults 00



Or

“” “ “ /home/bob/newDisk1 ext2 user 00

Or

“” media/newDisk1 ext2 ro 000



7) mount newDisk1

mount newDisk2



8) fdisk -1 (Checks)







PATH

1. echo $PATH

2. mkdir /newDir (change to here)

3. create simple script EG: myScript (Grant permissions and check it works)

4. Return home, check if it works (it won’t)





5. Enter “ PATH=$PATH:/newDir ” (no spaces) run it again



Make PATH permanent

1. gedit .bash_profile

“PATH=$PATH:/newDir

Export PATH





Hard and Soft Links



Q: Create a hard and soft link from your home directory to the passwd file. Check inode numbers



1. cd home

2. ln /etc/passwd passLink1 (hard)

3. ln –s /etc/passwd passLink2 (soft)



4. ls –I /etc/passwd to check inode





TEST COMMAND



Q: write a script to determine if a file exists is readable



clear

echo -n "Enter file name "

read fileName

if test -f $fileName

then

echo "This is a regular Linux file"

if test -r $fileName

then

echo "$fileName is readable"

fi

else

echo "$fileName is not a regular file"

fi





Q: Write a script which determines if a file is a regular file or directory or neither





clear

echo -n "Enter file name "

read fileName

if test -f $fileName

then

echo "This is a regular Linux file"

else

if test -d $fileName

then

echo "$fileName is a directory"

else

echo "$fileName is neither a directory nor a regular file"

fi

fi
Niklaus Pfirsig
2008-03-27 15:56:53 UTC
Unix began as a lab OS at ATT many years ago. Due to legal restrictions, AT was not allowed to sell UNIX and gave free leases to universities to use it. Many college CS students and professors added many utilities to unix and improved it. The the legal restrictions were lifted from ATT, and ATT started selling UNIX for lots of money. ATT included the utilities and enhancements made by the students and professors, but refused to acknowledge or pay royalties to them.

The University of Southern California at Berkley developed a Unix variant known as BSD (Berkley Systems Distribution) Unix which early on was proven in the courts to be differnt enough from the ATT unix so that ATT could not claim copyright infringement against Berkley. Soon every compute maker had a variant of UNIX all their own, IRIX, AIX, AUX, Solaris, Xenix, Venix, and so on. These were all slightly different.

Meanwhile, the proffessors and students were really P-Oed that they had been used and didn't get any credit. led by one guy, the GNU (GNU's Not Unix) initiative was started, to recreate unix utilities without copying any ATT code and with a legal licensing scheme that prohibited any company from claiming the programs as their own.

Eventually everything from unix was cloned except for the kernel, the Operating system core, and Linux Torvalds provided the basic core and a new methodology for software development, where the competition was not for money, but for recognition of having the best answer to a particular problem. THe was done by making it possible for a great number of programmers to offer solutions over the internet, and to incoporate the best solutions into new versions of the program.

Linux tends to imitate the ATT unix commands, but also supports the BSD commands. In UNIX the command options were handled inconsistantly, with some options being positional and some using subcommands, while linux has settled on the subcommand style of options. some of the linux commands have names that parody the original ATT developed utilities, (eg UNIX yacc vs GNU bison ) and so on.

Generally speaking, linux commands are very similar , but may have some weird names, and only files names are used positionally, with sub commands prefixed with a "-" of options.
Fraggle
2008-03-26 11:17:45 UTC
The thing is, Unix is a generic term. The major differences are between BSD and System V commands. Look up the difference between them. Linux is closer to System V.
niss
2008-03-26 05:02:55 UTC
Linux is an Operating sys which applies unix as base and gives more applications.



also linux is GUI(graphic user interface) made having unix as its core. unlike unix that is commadn user interface style
dino
2008-03-26 04:59:25 UTC
Computer Hope



* Home

* Free help

* Contact

* Links

* Tips

* Dictionary

* Forums



Search



Tips





Other Pages

Home

Site map

Computer help

Dictionary

News

Q&A

What's new



Tools

E-mail this page

Print Preview

Edit this page











Unix, Linux and variants



Quick links



Unix ABCs

Linux ABCs

MS-DOS vs. Linux / Unix

Unix commands

Unix Top 10 commands

Unix Shortcuts

Linux variants

Unix variants

Unix / Linux history

Unix / Linux tips

Unix / Linux links

Linux / Unix news

Linux Q&A



Unix ABCs



Unix, which is not an acronym, was developed by some of the members of the Multics team at the bell labs starting in the late 1960's by many of the same people who helped create the C programming language. The Unix today, however, is not just the work of a couple of programmers. Many other organizations, institutes and various other individuals contributed significant additions to the system we now know today.



See additional Unix information and variants and information on the Unix variants page.



Linux ABCs



Developed by Linus Torvalds and further elaborated by a number of developers throughout the world, Linux (lee'nuhks/ or /li'nuks/,_not_/li:'nuhks) is a freely available multitasking and multiuser operating system. From the outset, Linux was placed under General Public License (GPL). The system can be distributed, used and expanded free of charge. In this way, developers have access to all the source codes, thus being able to integrate new functions easily or to find and eliminate programming bugs quickly. Thereby drivers for new adapters (SCSI controller, graphics cards, etc.) can be integrated very rapidly.



See additional Linux information and variants and information on the Linux variants page.









MS-DOS vs. Linux / Unix



If you are able to navigate using MS-DOS, you should be able to quickly pick up on the navigation of Linux and Unix. In the below chart is a listing of common MS-DOS commands with their Linux / Unix counterpart.

MS-DOS Linux / Unix

attrib chmod

backup tar

dir ls

cls clear

copy cp

del rm

deltree rm -R

rmdir

edit vi

pico

format fdformat

mount

umount

move / rename mv

type less

cd cd

chdir

more < file more file

md mkdir

win startx



Forum Posts



* su command in shell script

* Primitive

* Help making custom distro

* [REQ] Availability, support, features of Red Hat

* Linux server goes "offline"

* How to replace string at specific index in text file

* Changing IP address

* Ubuntu and CentOs

* need help adding workstations to directory

* ISO burning program



Forum home







Index



Category:

Software



Companies:

Click here



Related Pages:

Operating Systems





Resolved



Were you able to locate the answer to your questions?



* Yes

* No





Linux / Unix Commands



* See our our complete overview page for a brief description on each of the below commands.

A a2p | ac | alias | ar | arch | arp | as | at | awk

B basename | bash | bc | bdiff | bfs | bg | biff | break | bs | bye

C cal | calendar | cancel | cat | cc | cd | chdir | checkeq | checknr | chfn | chgrp | chkey | chmod | chown | chsh | cksum | clear | cls | cmp | col | comm | compress | continue | copy | cp | cpio | crontab | csh | csplit | ctags | cu | curl | cut

D date | dc | df | deroff | diff | dig | dircmp | dirname | dmesg | dos2unix | dpost | du

E echo | ed | edit | egrep | elm | emacs | enable | env | eqn | ex | exit | expand | expr

F



fc | fg | fgrep | file | find | findsmb | finger | fmt | fold | for | foreach | fromdos | fsck | ftp

G getfacl | gprof | grep | groupadd | groupdel | groupmod | gunzip | gview | gvim | gzip

H halt | hash | hashstat | head | help | history | host | hostid | hostname

I id | ifconfig | ifdown | ifup | isalist

J jobs | join

K keylogin | kill | ksh

L ld | ldd | less | lex | link | ln | lo | locate | login | logname | logout | lp | lpadmin | lpc | lpq | lpr | lprm | lpstat | ls

M mach | mail | mailcompat | mailx | make | man | merge | mesg | mii-tool | mkdir | mkfs | more | mount | mt | mv

N nc | neqn | netstat | newalias | newform | newgrp | nice | niscat | nischmod | nischown | nischttl | nisdefaults | nisgrep | nismatch | nispasswd | nistbladm | nmap | nohup | nroff | nslookup

O on | onintr | optisa

P



pack | pagesize | passwd | paste | pax | pcat | perl | pg | pgrep | pico | pine | ping | pkill | poweroff | pr | priocntl | printf | ps | pvs | pwd

Q quit

R rcp | reboot | red | rehash | remsh | repeat | rgview | rgvim | rlogin | rm | rmail | rmdir | rn | route | rpcinfo | rsh | rsync | rview | rvim

S s2p | sag | sar | scp | script | sdiff | sed | sendmail | set | setenv | setfacl | settime | sftp | sh | shred | shutdown | sleep | slogin | smbclient | sort | spell | split | stop | stat | strip | stty | su | sudo | sysinfo | sysklogd

T tabs | tac | tail | talk | tar | tbl | tcopy | tcpdump | tee | telnet | time | timex | todos | top | touch | tput | tr | traceroute | tree | troff

U ul | umask | unalias | unhash | uname | uncompress | uniq | unmount | unpack | untar | until | uptime | useradd | userdel | usermod

V vacation | vedit | vgrind | vi | view | vim | vipw | vmstat

W w | wait | wc | wget | whereis | while | which | who | whois | write

X X | xargs | xfd | xlsfonts | xset | xterm | xrdb

Y yacc | yes | yppasswd

Z zcat



* In addition to each of the above explanations, additional information about a specified command for your Unix or Linux variant can be found by using the man command.







Home - Computer help - Contact - Dictionary - Links

Link to Computer Hope - Bookmark Computer Hope



Copyright 1998-2008 by Computer Hope (tm). All rights reserved

Legal Disclaimer - ESD Warning - Privacy Statement


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...