GIDForums  

Go Back   GIDForums > Web Hosting Forums > Web Hosting Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Jan-2003, 03:38
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Lightbulb

Useful SSH / Unix commands


This is my 'quick find' list of SSH / Unix commands:

rm : delete files.
rm -r [directory] : empties and deletes directory recursively.
mkdir : Creates a directory.
cd : Change to directory.
mv : Move or Rename a file / directory
ls : Directory / file listing.

Please feel free to add to this list.
  #2  
Old 11-Jan-2003, 06:05
Elmseeker's Avatar
Elmseeker Elmseeker is offline
Awaiting Email Confirmation
 
Join Date: Jan 2003
Posts: 87
Elmseeker is on a distinguished road
Talking

ls -al / long directory listing
rm -f / remove files, force...it doesn't ask...
rm -rf / remove, force, recursive (subdirs and files)
du / how much disk space you are using.
df / how much disk space is available.
du -m / how much disk space you are using in megabytes.
wc / count words in a file or files.
wc -l / count lines in a file or files.


Just what I can think of off the top of my head as useful for the average user. If I think of anymore I'll post 'em
  #3  
Old 17-Jan-2003, 06:38
nniehoff nniehoff is offline
Member
 
Join Date: Aug 2001
Location: US
Posts: 115
nniehoff has a spectacular aura about
su Super-User (must have root password)
find finds files (there are some switches that are needed)
chmod change permissions of a dir
chown change the owner of a dir
chgrp change the group of a dir
cd ~ takes you to your home dir
The tab key is also a very useful tool, you can type for instance "cd /ho{tab}" and you go to Linux types the rest of the dir name for you.
Nick
  #4  
Old 17-Jan-2003, 07:04
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

linux 'find' very useful when unzipping files


I am very familiar with the linux 'find' command.

Everytime I unzip a file on linux, for some strange reason all the unzipped file permissions get messed up.

so i do this:
Code:
find . -name "*.php" -o -name "*.htm*" -o "*.jpg" -o "*.gif" -exec chmod go+r {} \;

code courtesy of Scott Deming ; www.vilitas.com
  #5  
Old 17-Jan-2003, 15:20
nniehoff nniehoff is offline
Member
 
Join Date: Aug 2001
Location: US
Posts: 115
nniehoff has a spectacular aura about
Isn't Linux Great!!!
Nick
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap Canadian Hosting tigerlillyhost Web Hosting Advertisements & Offers 0 27-Jul-2003 20:51
How do I find the Unix log file route? jrobbio Web Hosting Forum 4 04-Feb-2003 07:40

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:26.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.