Shell Commands: Difference between revisions
Jump to navigation
Jump to search
m →Tips |
mNo edit summary |
||
Line 47: | Line 47: | ||
<code>cat /etc/SuSE-release</code> | <code>cat /etc/SuSE-release</code> | ||
=== Password protect with Apache === | |||
[http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/ Password protect your pages with htaccess] | |||
<center>[[Linux]]</center> | <center>[[Linux]]</center> |
Revision as of 20:23, 23 June 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