Linux Command Line Help Dictionary

This is a list of some handy/common things you can do on the command line in Linux. Note items marked with • are valid/safe to paste without modification into a terminal, so you may want to keep a terminal window open while reading this so you can cut and paste. [Read book online…]

Installing Software from Source

Ben Okopnik explains, in relatively simple terms, how to install a Linux program from a downloadable source package. The article assumes rudimentary knowledge of how to use the Linux command line, but pretty much explains every step of installation starting from a typical source package in “tar” format. [Read the book…]

Linux Networking Commands

Any reasonable distribution of Linux has many basic network commands available for installation. This page lists and describes the commands you should have available if you have a Linux box and chose to install networking capabilities. [Read the book…]

Introduction to Linux – A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and … Read more

Advanced Bash-Scripting Guide

This document is both a tutorial and a reference on shell scripting with Bash. It assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction. The exercises and heavily-commented examples invite active reader participation. Still, it is a work in progress. The intention is to add much supplementary … Read more

Bash Guide for Beginners

The Bash Guide for Beginners gets you started with Bash scripting and bridges the gap between the Bash HOWTO and the Advanced Bash Scripting Guide. Everybody who wants to make life easier on themselves, power users and sysadmins alike, can benefit from reading this practical course. The guide contains lots of examples and exercises at … Read more

unix2dos — UNIX to DOS text file format converter.

Creative Commons is the best and cheapest way to share your art, music or knowledge. There are around 29 internationalized versions of CC. The time has arrived for India to have its own Creative Commons. URL: http://creativecommons.org/worldwide/overview URL: http://www.techmag.biz/?q=node/81 One Day One Command =================== unix2dos — UNIX to DOS text file format converter. Summary: Each … Read more

mii-tool — Show/Check/Set the MII status.

Mr Frederick Noronha (FN) is a freelance journalist, who dedicate some of his time to FOSS & he regularly writes about the Indian FOSS community activities. URL: http://fn.swiki.net/ One Day One Gnu/Linux Command =================== mii-tool — Show/Check/Set the MII status. Summary: MII (Media Independent Interface) is a standard bus which connects network interface controllers to … Read more

save your terminal sessions

How to save everything printed on your screen? this can be done with “script” Script makes a typescript of everything printed on your terminal.? It is useful for students who need a hardcopy record of an interactive session as proof of an assignment. man script will help more

File System Structure – II

We have already discussed the directory structure in
Linux/Unix. You
are able to find files and directories that you need. But there is more
to the filesystem than just the directory structure.

Linux/Unix is a multiuser operating system. Every aspect
of
the system is
multiuser, even the filesystem. The system stores information like who
owns a file and who can read it. There are other unique parts about the
filesystems, such as links and NFS mounts. This section explains these,
as well as the multiuser aspects of the filesystem.

In Linux/Unix, all files are protected under some access
control mechanism, so
that the owner of a file can deny access of his files to other
users. The first column of the long directory list shows the access
characteristics of a file, in te form of 10 flags, e.g. drwxr-xr-x.

drwxr-xr-x? 18 gaurav
gaurav??? 784 2005-04-14 08:31 .

The meanings of the flags are shown below:

Position 1       file type: d (directory) 
- (ordinary file)
l (symbolic link)

Position 2-4 permissions for the owner: r (read)
w (write)
x (execute)

Position 5-7 permissions for other users in the same group

Position 8-10 permissions for all other users

Note that a hyphen (`-‘) denotes lack of the given permission type.
For example, r-x would mean that read and execute permission are
granted, but not write permission.

In order to remove a file, you must have write
permission for
it.

In order to view the contents of a directory, i.e. see
what
files
are there, you need read permission for that directory. In order
to actually access a file (read from it, write to it, or execute
it) in the directory, you need execute permission for the directory.

Ownership

The filesystem stores ownership information for each
file and
directory on the system. This includes what owner and group own a
particular file. The easiest way to see this information is with the ls command:

$ ls -l /usr/bin/wc

   -rwxr-xr-x   1 root     bin    7368 Jul 30  1999 /usr/bin/wc

We are interested in the third and fourth columns.
These
contain the username and group name that owns this file. We see that
the user “root” and the group “bin” own this file.

We can easily change the file owners with the chown(1) (which means “change owner”) and chgrp(1) (which means “change group”) commands. To
change the file owner to “daemon”, we would use chown:


# chown daemon /usr/bin/wc

To change the group owner to “root”, we would use chgrp:

# chgrp root /usr/bin/wc
   

We can also use chown to specify the user and group owners for
a file:

# chown daemon.root /usr/bin/wc

File ownership is a very important part of using a
Linux
system, even if you are the only user. You sometimes need to fix
ownerships on files and device nodes.

References:

http://slackware.com

http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/FileSyst.html

Read more