Shell Commands: Difference between revisions

From GotOpinion
Jump to navigation Jump to search
mNo edit summary
Line 55: Line 55:


[http://www.ahinc.com/linux101/users.htm Users]
[http://www.ahinc.com/linux101/users.htm Users]
[http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/getting-started-guide/s1-navigating-ownership.html Permissions]


<center>[[Linux]]</center>
<center>[[Linux]]</center>

Revision as of 09:48, 2 July 2010

Tape Archival (tar)

Create tar

tar -cvf filename.tar filemane

Undo tar

tar -xvf filename.tar

List contents tar

tar -tvf filename.tar

gzip

Compress file

gzip -9 filename

Decompress file

gzip -d filename

ifconfig

To determine your IP address settings run:

ifconfig

find

To find path to a file run:

# find / -name "filename"


Tips

Find version of OS

cat /etc/redhat-release

cat /etc/redhat-release

cat /etc/fedora-release

cat /etc/SuSE-release

Password protect with Apache

Password protect your pages with htaccess

Users and Groups

Users

Permissions

Linux