September 02, 2014, 01:55:42 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Os Talk / Re: If linux is free why is Africa not using it
« Last post by keen_prat on December 07, 2012, 07:14:49 AM »
Because people are so much used to windows that they are hasitant to try to linux and people should understand Linux is not M$ windows.
72
Linux Servers Support / What are Inodes and how to increase them?
« Last post by keen_prat on December 07, 2012, 07:13:19 AM »
I recently ran into a problem and I have discussed it here
   
Failed to open /etc/webmin/webmin/oscache for writing : Disk quota exceeded


It turn out to be inodes limitation provided by host on this machine I am using, but what the heck this all inode is about, I had GBs of space free on that server and still because I ran out inodes limit, I was not able to use it

I get to know about inode usage by
df -i

But thats actually bad, anyways and how to increase them ?
73
-z is now deprecated but I think I found the solution, I was just trying and it was indeed path issue. I gave it like ./directory-name (as it was in root of archive) and it did the job.
74
Ya, that was indeed misleading, I had plenty of gigs space available on the server and still that error.
Its resolved now.
75
Miscellaneous / Re: How to extract a single directory from tar archive using command line
« Last post by dalek on December 07, 2012, 07:05:25 AM »
I think it need to be like this:

Code: [Select]
tar -zxvf archive.tar mydirectorytoextract
You have the order correct but I think you may need the -z option.  Watch that -f tho.  When you use it, it has to be right before the file name, either as a separate option or on the end like you have them.  I ran into that a few times myself.  Also, I read somewhere that you have to put the path to the file you want to extract too.  If I backup /home and then want to extract /home/dale/Desktop then it would be -f /home/dale/Desktop for tar to find the file.  If -z doesn't help, try checking the path.  Maybe it needs that.

Hope that helps.

 :)    :)
76
Ah, that will do it to.  That error is sort of misleading isn't it?   ???

 :)    :)
77
Linux Servers Support / Re: iptables question.
« Last post by keen_prat on December 07, 2012, 06:53:30 AM »
As far as I know, you don't need to take all that trouble, in squid.conf  you can set it to listen to local IP only and thats it.
78
Linux Servers Support / Re: ftp between computers
« Last post by keen_prat on December 07, 2012, 06:52:23 AM »
I feel you can use rsync to synchronize both computer. It uses ssh , so on both computer ssh should be running, its really easy to use rsync and its very powerful.

Its used as :
rsync -r <source> <destination>

eg:
rsync -r filename username@192.168.1.2:/remote/diretory

So it will copy your "filename" file to remote computer's /remote/directory and next if you do rsync, it will only update changes so it not copy all content and should be very fast. This technique is used in servers to make backup and its actually real synchronization.
79
Thanks dalek but I think I found the problem, it was limit imposed by hosting provider in some form of inodes..
80
Miscellaneous / How to extract a single directory from tar archive using command line
« Last post by keen_prat on December 07, 2012, 06:44:28 AM »
Hi

I am dealing with some large files and I need to extract only particular directly using command line and I am doing it like following:

First I finding all files are there in the tar file ..
like
tar -tf archive.tar

then when I confirmed its there, I gave command

tar -xvf archive.tar mydirectorytoextract

But it is giving error that its not there in archive, I have used similar technique to extract file but directory is not extracting.. help please..
Pages: 1 ... 6 7 [8] 9 10