Web Hosting India

Can Web Hosting

RIM Hotline
Call Sales: 91-11-41721444
91-11-41720246
Quality Web Hosting India - Reseller, Windows & Linux Hosting Delhi
 
Linux Support
Linux 3 Hosting Tech-Support Area. Linux Hosting Support
Linux 3 Hosting Tech-Support Area. Providing you with best technical support at all times.

Basic Unix Commands (required forVirtual Web Server Management)

  • pwd
  • mkdir
  • cd
  • rmdir

  • ln (redirecting file access)
  • passwd (changing your password)
  • zip/unzip
  • du (disk usage)


Plain file manipulation

a) mv
mv fred wilma

This moves fred to a file named wilma. This is the Unix way of renaming a file. mv fred flintstones/fred

This moves fred to a file named fred in the subdirectory flintstones. This example could have been written mv fred flintstones/ as well, and the filename fred would have been retained in the new directory.

After executing this command, there will no longer be a fred file in the current directory.

b) cp
cp fred wilma

This copies fred to a file named wilma.

cp fred flintstones/fred

This copies fred to a file named fred in the subdirectory flintstones.

c) rm
rm flintstones

This removes a file named flintstones.

rm -rf flintstones

This removes a directory named flintstones. The -r removes the directory, the -f forces it to remove files without asking you before it deletes each one.

Directory manipulation

In order to keep track of the possibly millions of files on-line, Unix systems have a directory tree, which enables meaningful classification of files. For example, the most essential system programs are kept in /bin/, user home directories are all under /home/, and everything having to do with the WWW is under /www/. More specifically, your home directory is /home/you/ and the directory for your WWW files is /www/htdocs/you/.

a) pwd
pwd This prints out your working directory: where you are. When you give a filename to a command without specifying some other directory, the filename is looked up, manipulated, or created in your current working directory.

b) mkdir
mkdir flintstones

This makes a subdirectory of the current directory named flintstones.

c) cd
cd flintstones

This changes the directory to the subdirectory named flintstones.

cd /home/flintstones

This changes the directory to the home directory of the flintstones.

cd /www/htdocs/flintstones

This changes the directory to the WWW directory of the flintstones.

cd

With no arguments, cd returns you to your home directory.

4) rmdir
rmdir flintstones This removes the subdirectory flintstones. The directory must be empty for this to work.

Account management

1) ln (redirecting file access)
Type ln -s fred.html index.html to redirect all file accesses from index.html to the file fred.html.

2) passwd (changing your password)
Type passwd to change your password.

3) zip/unzip

Type zip to zip files and unzip to unzip files. This program is compatible with the zip program for DOS. For example:

zip myzip file1 file2 file3

This puts the files file1, file2, and file3 into a new zip archive called myzip.zip. On the other hand, if you had the archive myzip.zip and wanted to get back the files:

unzip myzip

Typing zip or unzip by itself will give you a usage summary, showing nearly all the options availible.

4) du (disk usage)
The Unix command

du -s directory
shows how much disk space is used by a directory and everything below it. While we work on creating the complicated command needed to automatically check all the directories you are associated with, you can find out how much space is in use by the WWW files for a domain with

du -s /www/htdocs/domain
If you don't have anything much in your home directory or mail spool, this comes close to the total space you have in use. (You would know if you did have other things in your home directory, and could use du -s $HOME to check on that.)

If you have an anonymous FTP area, also check

du -s ~ftp/my.domain
For example, snoopy.com might need to run some number of the following:

du -s /www/htdocs/snoopy
du -s ~ftp/snoopy.com
du -s $HOME
and add the results to find out how much space he's using.

You might find it useful to use the -c command and group the paths

Example:

brown:~$ du -sc /www/htdocs/pir ~ftp/pir.com $HOME

5489 /www/htdocs/pir
4 /www/ftp/pir.com
13 /home/rmiller
5510 total
Actual results.

brown:~$ du -sc /www/htdocs/pir ~ftp/pir.com $HOME
5489 /www/htdocs/pir
du: /www/ftp/pir.com/bin: Permission denied
du: /www/ftp/pir.com/dev: Permission denied
du: /www/ftp/pir.com/etc: Permission denied
du: /www/ftp/pir.com/lib: Permission denied
4 /www/ftp/pir.com
13 /home/rmiller
5510 total
The numbers reported are kilobytes. A senior or RealAudio account gets to use about 51,000 blocks before having additional charges. A junior or telnet- only account gets about 5,100.

Home
Domain Registration
Indian Domain
Web Hosting India
Windows Hosting
Linux Hosting
Mumbai Hosting
Budget Hosting
Reseller Hosting
Dedicated Server
Payment Gateway
Web Designing
Server Configuration
Server Manual
Web Hosting Articles
Contact Us
Search
NEED HELP ?
Call us at Delhi:

91 (11) 41720246
91 (11) 41721444
LINUX HOSTING
WINDOWS HOSTING
DOMAIN REGISTRATION

We also accept online payments:


 


Valid XHTML 1.0!

Valid CSS!

Home | Domain Registration | Web Hosting | Website Designing | Why Us | Resources | Contact Us

Website maintained by Can Web Hosting offers Linux Hosting, Windows Hosting, Domain Name Registration, Reseller Hosting, Web Hosting India

Copyright 2009 Can Web Hosting India. All Rights Reserved
Address: J 4B Ground Floor, Lajpat Nagar, Part - II, New Delhi (INDIA) Ph: 011-41720246




Can Web Hosting Offers web hosting across 200 cities & towns all over India and among others to:
A : A THEKKUR, ACHAMPATHU, AGRA, AHMEDABAD, AJMER, ALANGUDI, ALATHIYUR, ALAVAKKOTTAI, ALLAHABAD, AMARAVATHIPUDUR, AMBALA, AMRITSAR, ANAND, ANKLESHWAR, ARANTANGI, AURANGABAD, AVINANGUDI, AVINIPATTI

B

:

BANGALORE, BARIELLY, BARODA, BATHINDA (G.T. Road), BELGAUM, BHARUCH, BHILAI, BHILWARA, BHOPAL, BHUBANESHWAR, BHUJ, BIDADI, BIKANER, BOISAR,

C

:

CHANDIGARH, CHANGANACHERRY, CHATRAPATI, CHENGANNUR, CHENNAI, CHIDAMBARAM, COIMBATORE, CUDDALORE, CUTTACK

D

:

DAHANU, DARJEELING, DEHRADUN, DELHI, DEVAKOTTAI, DEVIKAPURAM, DEVIPATNAM, DHANBAD, DHARAPURAM, DHARMAPURI, DHARWAD, DINDIGUL, DULIAJAN, DURGAPUR

E

:

ELURU, ERIYUR, ERNAKULAM, ERODE

F

:

FARIDABAD

G

:

GANDHINAGAR, GHAZIABAD, GOBICHETTIPALAYAM, GUNTUR, GURGAON, GUWAHATI, GWALIOR

H

:

HALDWANI, HARIDWAR, HISSAR, HOSHIARPUR, HOSUR, HOWARAH, HUBLI, HYDERABAD

I

:

IDAPPADI, INDORE

J

:

JABALPUR, JAIPUR, JALLANDAR, JAMNAGAR, JAMSHEDPUR, JODHPUR

K

:

KADALADI, KANCHEEPURAM, KANDANUR, KANDAVARAY, KANNUR / CANNANORE, KANPUR, KARAIKUDI, KARNAL, KARUNAGAPALLY, KARUR, KASARGODE, KAVALKINARU, KAYALPATTINA, KEELAVALAVU, KILAKARAI, KOCHI, KODUMUDI, KOLHAPUR, KOLKATA, KOLLAM, KOLLIDAM, KOMARATCHI, KONAPET, KOOTHANALLUR, KOTA, KOTHAMANGALAM, KOTTAIPATTINAM, KOTTAYAM, KULIPIRAI, KUMARAVELU, KUMBAKONAM, KUMBANAD

L

:

LUCKNOW, LUDHIANA

M

:

MADURAI, MALAIYUR, MANGALORE, MANIPAL, MANJERI, MANNARGUDI, MAPUSA, MARGAO, MAYILADUTHURAI, MEERUT, MEHSANA, MELANIKULI, MELOLAKKUR, MELUR, MODAIYURSA, MOGA, MOHALI, MORADABAD, MUMBAI, MUTHUPET, MUVATTUPUZHA, MYSORE

N

:

NAGAPATTINAM, NAGERCOIL, NAGPUR, NAMAKKAL, NASHIK, NAVI MUMBAI, NAVSARI, NAWANSHAHAR, NELLORE, NEMATHANPATTI, NEW DELHI, NEYVELI, NOIDA

O

:

ORATHUR

P

:

PAGANERI, PALAGAPURI, PALANI, PALGARH, PANAIKULAM, PANAJI, PANAYAPATTI, PANCHKULA, PANIPAT, PARAMKUDI, PATHANAMTHITTA, PATIALA, PATNA, PATTAMADAI, PATTUKOTTA, PAVITHRAM, PEDDUR, PENNADAM, PERINTHALMANNA, PHAGWARA, POLLACHI, PONDA, PONDICHERRY, PONPETHI, POOLAMPATTI, PORBANDAR, PORTO NOVO, PUDUKKOTAI, PULANKURICHI

R

:

RAJAHMUNDRY, RAJAPALAYAM, RAJKOT, RAMANATHAPURAM, RANCHI, RANGIEM, RAVANASAMUDRAM, RAYAVARAM, REDDIARCHATRAM, ROHTAK, ROPAR, ROURKELA

S

:

SAHARANPUR, SALEM, SAMAYANALL, SAMBHALPUR, SARAM, SATHYAMANGALAM, SECUNDERABAD, SHIMLA, SILIGURI, SINGAMPUNARI, SIRUVACHOOR, SIRUVAYAL, SITHILINGAMADAM, SIVAGANGA, SIVAGANGAI, SIVAKASI, SOKKANATHAPURAM, SOLAPUR, SUNDARAPAN, SURAT

T

:

TANJORE, TENKASI, THANE, THENI, THIRUMURUGANPOONDI, THIRUVALLA, THIRUVANANTHAPURAM, THIRUVANNAMALAI, THIRUVARUR, THIVARUR, THOTTPATTI, THRISSUR / TRICHUR, TINDIVANAM, TIRUNELVELI, TIRUPATHI, TIRUPATTUR, TIRUPPARANKUNDRAM, TIRUPPATTUR, TIRUPPUR, TIRUR, TIRUVALAM, TRICHY, TUTICORIN

U

:

UDAIPUR, UDIPI, UDUMALPET

V

:

VADAKKANKULAM, VADODARA, VALLABH VIDYA NAGAR, VALOOTHOOR, VALSAD, VANAVASI, VANIYAMBADI, VAPI, VARANASI, VASCO-DA-GAMA, VELLALORE, VELLANUR, VELLORE, VENGUR, VETTAKARANPUDUR, VIJAYAWADA, VILLUPURAM, VIRAICHILA, VIRAPANDIAPATNAM, VIRUDHACHA, VISHAKAPATNAM

W

:

WARANGAL

Y

:

YAMUNA NAGAR, YEMBAL