answersLogoWhite

0

📱

Linux

A free and open-source family of operating systems first started in 1991 and named after its creator, Linus Torvalds.

2,239 Questions

Difference between DOS and Linux file system?

There are a few differences.

1. In Windows, each seperate filesystem is accessed independently of the other through drive letters. In Linux, each seperate filesystem gets mounted and integrated into one unified filesystem tree.

2. Windows only really supports a few filesystems, primarily NTFS. Linux supports a wide range of filesystems: ext2, ext3, ext4, btrfs, zfs, jfs, reiserfs, ntfs, etc.

3. Both are capable of supporting loadable filesystem drivers, but Linux has better support for it by far. Also, Linuxhas a filesystem driver called "FUSE" which allows filesystems to be made available through userspace.

4. Linux makes use of pseudofilesystems. Windows doesn't. Because Linux follows the Unix philosophy of everything being a file, Linux can abstract a great deal of things into filesystems, and already does for /dev, /proc, and /sys.

5. Linux core file permissions are more simple but usually more effective than Windows'. The vanilla Linux permissions have three contexts: User, Group, and Others, with three permissions for each: Read, write, and execute. Furthere, three special permissions applied to the file globally, sticky, suid, and guid.

6. Linux has full linking capability, both hard and soft links. Windows has a pretty limted linking capability, bt most users will end up using the "shortcuts" system instead, which is not so capable. With Linux, soft links behave for all intents and purposes as if they *are* the file or directory they point to, meaning even most software apps will make use of them as if they are the real thing, something that cannot be said for Windows shortcuts, which for the most part are almost completely ignored by most software. Finally, a note on hard links: Hard links are different from soft links in that they actually ARE the file itself. Hard links are an actual inode (Filesystem metadata.) reference to the file data itself, virtually indistinguishible from the "original" file. This is not the same as a copy, as a copy actually is that, a copy, where the data is actually duplicated. In this case it quite literally is the file or directing existing in multiple places at the same time on the filesystem. The disadvantage is that hard links do not work across filesystems, largely because an inode cannot really know the contents of another filesystem without a lot of outside help, such as RAID.

7. Windows fragments a lot. Linux hardly fragments unless there's chronic space problems or lots of saving and deleting. This is largely based on how the two operating systems format their filesystems. For the most part, no OS really has the same sort of control over where any data is physically placed on a disk, as the hard disk controller itself, but an OS can influence where the data is placed based on the data structures they specify to the hard disk controller. This problem is far less pronounced in Windows as it used to be, however.

8. Windows doesn't provide any real native loop interfacing with virtual media, such as disk images. Linux does, in the "loop" driver, allowing one to store an entire filesystem in a normal file and mount it as if it were a disk. Windows has third party utilities that can do this, but most of them only support ISO images. This allows Linux to give users handy ways to encrypt and store data in ways Windows can't even begin to approach.

9. Finally, swap space: Windows and Linux approach this in fundamentally different ways. Windows uses a file to store swap data right on the system partition, allowing it to grow and shrink, contributing to overall fragmentation. Linux, on the other hand, Makes an entire partition for swap data. Though in many cases with RAM being as large as it is today and the level in which Linux kees its memory usage down many Linux users don't use swap at all. Linux *can* deploy a swap file like Windows using the loop interface mentioned above, but it's really just better to set aside about 5 GiB of your hard disk to swap (Hard disks are large and cheap, so dedicated swap space is hardly costly to most users.

What do you mean by file permissions rw-rwx-wx?

There are 10 characters in a string for a Unix-style file permission.

The format is:

dooogggaaa (where d is a directory flag, oindicates the permissions for the file owner, g indicates the group the file belongs to, and a is for everyone else [all])

The permission values breakdown:

  • d is only available on the first character, and if toggled, this means that the file is a directory (folder).
  • - means no permission (or in the case of the first character, it means it's a file and not a directory).
  • r grants read permissions.
  • w grants write permissions.
  • x grants execute (run) permissions, which is generally used on program files.

In your case, -rw-rwx-wx means:

  • It's not a folder (the directory flag is not there)
  • The file owner is allowed to read and write to the file
  • The group is allowed full access (read, write, execute)
  • Everyone else is only allowed write and execute permissions.

If you find it hard to memorize those, there's a different way to memorize it (as 3 digits).

Your file has a value of 673.

Like the previous representation of file permissions, the first digit represents the owner's permissions, the second digit represents the group permissions, and the last digit represents the everyone's permissions.

To get these numbers:

A "read" permission is assigned the number 4.

A "write" permission is assigned the number 2.

A "execute" permission is assigned the number 1.

If you add them together, you'll get a sum for the permissions.

For example, your 673:

  • File owner: read + write = 4 + 2 = 6
  • Group: read + write + execute = 4 + 2+ 1 = 7
  • All: write + execute = 2 + 1 = 3

What software can edit Linux?

The source of the Linux kernel, as well as most programs that run on it, is publicly available. You can edit the source with any text editor, although you may prefer one with syntax highlighting. The configuration files necessary to actually operate Linux are also editable with a standard text editor.

What does the GNU general public license require software developers to do when modifying Linux versions?

GNU doesn't regulate anything.

The GPL, on the other hand, requires that if you redistribute Linux with your modifications, that you make the source code of your modifications available as well.

Keep in mind this only applied to DISTRIBUTION. In-house/personal-use stuff you are literally unrestricted and can even keep modifications to yourself.

To make this a little less confusing, consider this:

1. Distributor X makes Y modification to Linux.

2. X sends out Linux with Y modification and has to make Y available openly without restriction.

3. End user Z gets Linux with Y.

4. Z modifies Linux with Y with further modification W.

5. Because Z is not sharing Linux with modifications Y and W, he doesn't have to share W at all.

A more real world example:

1. nVidia makes an excellent proprietary driver for their video cards on Linux.

2. Because the driver is proprietary, this driver cannot be included with the kernel tree itself.

3. Instead, the end user typically has Linux installed with a kernel and has to download and install the driver themselves, typically over their distribution's repositories.

There used to be a debate about whether this driver violates the GPL anyway over "derived works" clauses, though even the FSF (Responsible for the GPL and its terms.) has pretty much held there is no such violation.

Further, the GPL, being a license and not a law, cannot take away the rights of the OWNER of the copyright. If I am the sole owner of code I have licensed under the GPL, the GPL can't stop me at all from relicensing the whole shebang under a proprietary commercial license. Some companies, such as Canonical, even have "copyright reassignment" agreements with contributors that legally transfers copyright from the modder to Canonical and it won't violate the GPL, however a lot of people find this shady and against the spirit of free software.

Still, because of this, if you're sole copyright holder and want to include proprietary code with your work, you won't be able to use the GPL without violating it, though technically a copyright holder cannot violate their own copyright. I am unsure if the GPL can stop a copyright holder from including proprietary software of their own creation directly into GPL code of their own creation, but it would definitely stop anyone else from redistributing the whole package themselves unless they remove the proprietary parts.

Why did Linus Torvalds invent Linux?

Linus Torvalds wanted a Unix operating system for his new 80386 PC. Almost all versions of Unix cost several thousand dollars, and only a couple could really use the features of the 80386 processor. So he decided to write his own.

How do you clear the Linux terminal screen?

If you mean on the command line, then the command is:

clear

Of course, if your encoding's been messed up, you can also clear up this little problem with the command:

reset

Write the Linux command to display the information about LS command?

Using man ls will open the manual page for the ls command. The ls command lists the files and folders in the current directory.

How do you connect a USB flash drive to Linux?

First, you "unmount" it, but leave it plugged in. This is the equivalent of "Safely Remove Device" in Windows. you can unmount it using the command

umount /dev/sdx

"x" can be any letter, but it will usually be "f" for the first Flash drive plugged in. You can view the mounted devices by using the command

mount

This will return a result like:

/dev/sdf on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,codepage=437,iocharset=utf8)

for the Flash drive.

To format it, execute the command

mkfs.vfat /dev/sdx

You can then remount the device.

Can you switch from xp to Linux?

It would really depend on the machine you are using. If it has an x86-compatible processor, probably. Otherwise, no. The ASUS Eee PC would be an example of a device that often comes with Linux, but can run Windows as well. A cell phone or PDA would be an example of a device that this would probably not be possible for.

Where are downloaded files stored in Linux?

That depends on what you are using to download them, and where said program is specified to download them to. Mozilla Firefox, for instance, usually defaults to the desktop (/home/username/Desktop).

How do you uninstall programs in Linux?

First, open terminal (bash prompt).

You must be login as root user to run any one of the following command.

Remove Software under Red Hat / RHEL / Fedora / CentOS Linux

Use rpm or yum command to delete the software.

To list the installed software type

rpm -qa | less

rpm -qa {software-name}

yum list | less

yum list {software-name}

To get information about httpd package, enter:

rpm -qa httpd

yum list httpd

To remove a software use rpm or yum command as follows

rpm -e {software-name}

yum remove {software-name}

To delete a package called httpd, enter:

rpm -e httpd

yum remove httpd

Delete / Uninstall Software Under Debian / Ubuntu Linux

To list installed software type:

dpkg --list

dpkg --list | less

dpkg --list | grep apache

To delete the software, enter:

sudo apt-get remove {package-name}

sudo apt-get remove apache

Which company created Linux?

Thousands of people and hundreds of organizations, but the guy in charge is Linus Torvalds.

How does directory assistance work?

when you phone in the computer tries to match to the info you have provided. If it can you get the computer message that says the number.

If you talk to a person they just punch a computer keyboard and see the latest listings and read it off to you.

And since the phone company can see your phone number at the far end you get billed.

What are pipes in Linux?

The pipe construct as symbolized by '|' originated in the Unix operating system and is one of a set of input/output (I/O) redirectors, the others being '>' and '<' (without the single quotes). This concept was also carried over to Microsoft's DOS and Windows operating system command lines (COMMAND.COM, CMD.EXE and today, Powershell). The general idea is that command line programs either take in "input" or send "output" to some destination, usually your screen which is considered "standard out" (abbreviated as stdio). Your keyboard is typically "standard in" (abbreviated as stdin). Using the pipe in operating systems the support the concept, it is possible to have the output of one program (it's stdout) "piped" to the input of another program (the other program's stdin) for further processing.

For example, if you run a command line program that outputs multiple lines of text that scroll out of view and you're specifically looking for a particular word (known as a "character string" or "string"), you can run your command and then pipe it's output to the input of the 'grep' command which will only display any output that matches your string. The command would look something like this:

mycommand | grep "sausages"

The stdout of 'mycommand' is piped to the stdin of 'grep'. The end result is that the only lines that will be displayed on your screen from 'mycommand' are the ones that contain the string "sausages".

Can you use Skype on Linux?

Yes, there is Skype 2.2 Beta for Linux, codenamed ‘Access Granted’, it brings Skype Access to Linux users. Skype Access lets you connect to over 500,000 WiFi hotspots worldwide using your Skype Credit.

How many versions are there of Linux?

Depends what you mean. There are hundreds of desktop distros, but linux is much more popular than you would imagine. Android, the Wii, almost all servers, most checkout monitors, and many public displays (airports, fast food menus, etc) all run linux. So, there are a few hundred distros, but I'd estimate there are over 10000 "versions" in use across the world.

What is Google Linux used for?

Linux is used for a variety of purposes. It is used on many servers (such as web servers and file hosting), as well as desktops and laptops. Linux is also popular in embedded systems like cell phones, ATMs, kiosks, televisions, Blu-Ray players, intelligent printers, and onboard car computers.

How do you change the root password in Linux?

When it askes for user enter root, and then when it asks for password enter the password. If you don't know password for root it's a really serious problem.

You can also log in as root via command line by typing "su"

How do you created a directory or a file?

What are you refering to?

If you are refering to windows. Just right click in the folder you want to create the directory/file, click "new" then choose what you want to create.

What does UNIX and Linux offer that Window does not?

The Linux kernel offers the user a host of operating systems that are free and can be copied and distributed as much as you like. Known genetically as 'Open Source' and, often small group or community maintained, you can freely try out a variety of distributions. All this without having to register to get a licence as you would need to do if using propriety MS Windows.

What applications are best suited for use on Puppy Linux?

The applications that are best suited for use on Puppy Linux is AbiWord (a free word processing application, Gnumeric (spreadsheet), and MPlayer (free multimedia player).