General :: Finding (HTML) File Size To Display In Summary
Dec 7, 2009Need to find the size of a file (html), and display it in a summary file. (Have tried du, ls, size, but none of these work).
View 6 RepliesNeed to find the size of a file (html), and display it in a summary file. (Have tried du, ls, size, but none of these work).
View 6 RepliesI am trying to figure out the actual size of files and directories on a CentOS Linux 5 server and when I do a ls -l I see for example at the Directory of /Data 4096 but once in side the directory and I do a ls -l I see larger file sizes. How do I get the actual file size of a Directory to show up?
View 3 Replies View RelatedI have a website that has a massive list of royalty free stock photos and I want to download all of them. I have bought a membership for [URL] so I am able to download as much as I want from them for the next month.
Instead of going page by page and manually downloading each set of stock photos manually, I would like to automate this process. Here's my idea:
1. Download the website with the links to hotfile [URL]
2. Use grep to retrieve all the links to [URL]
3. Feed the links I recieve from grep into wget and download the works of them.
The problem I'm getting is when I use grep, It retrieves the entire line of html code where "hotfile.com" is shown. So here is an example of one link I receive in the output:
Quote:
./1776-santa-claus-vector-set.html:<div align="center"><a href="http://hotfile.com/dl/18418176/181a55b/Santa_Claus_Vector_Set.rar.html" target="_blank">HotFile</a></div>
Is there a way to just have the link shown in the output?
PS: I have everything else working, I just need an automated process of getting all the links.
Kernel 2.6.21.5, Slackware 12.0 A command line html reader, or a conversion tool from html to text is what I would like to know if any of you guys knows. It has not to do a perfect job. And it would be nice if it is a native unix/linux program.
View 5 Replies View Relatedi need a php script to format and display a select amount of text from a file or a cron job that'll do it (with grep etc) and out put to a file but whatever is easier i want to display all the banned ip's i have in my .htaccess file i have a lot of lines in my .htaccess file but i have a line that read like this:
Code:
RewriteCond %{REMOTE_ADDR} (123.123.123.123|123.123.123.123|123.123.123.123)$
the 3 test ip's are 123.123.123.123 and i want the "" stripping and the "|" removing and each ip to be on it's own line like this:
123.123.123.123
123.123.123.123
123.123.123.123
i'm not bothered if this is a php script that'll read the .htaccess file and display the output or a cron job that'll run every x mins and output it to a .txt file but i'd prefer a php script
I want to know is there a command to find size of a folder.
View 4 Replies View Relatedhow to find total size of all files whose names starting with a
OS: SunOS
du -h a* is giving individual file sizes.
I am learning to do some html, php and css. I read that a normal word processor will not do. Here is what I am suppsed to use... Before you settle on a text editor, make sure it has the following features: Supports syntax highlighting for HTML, CSS, Javascript and PHP. you to code and debug faster by visually separating the different elements of the file. For example, such a text editor might highlight PHP code in blue and HTML code in red. Automatic error highlighting for HTML, CSS, Javascript and PHP. you catch errors in your programs while you are writing your code before these errors are detected when you run your program in Zen Cart. For example, if you fail to specify a closing tag for your HTML code, the editor uses a red underline to highlight the offending HTML tag.
View 3 Replies View RelatedI need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
i'm trying to convert a html file into a text file when i simply run "html2text <filename>" the output displayed is the way we want but when i redirect the same using "-o" or ">>" the file is having extra characters in it. i even tried -ascii,but no much use.
View 4 Replies View RelatedSo I installed Project64 (For those who don't know it is a Nintendo 64 emulation program so I can get my Mario fix), Which I always read is hard to put on a Linux. I didn't think I had WINE so I ran $ whereis wine and I guess I do. But I never set a config for it, So I don't get how an install through wine would work. How was the .exe read?, Because I thought wine had to run to read those, and I don't think it ran. At least there was no visible sign when I installed.
||-2nd part-||
I got my Project64.exe, put it in a directory I made, did the $ ch commands to change permission , did $cd <dir> then I ran ./Directory:$ Project.64.exe 'gamefile.z64' and it seems to work fine. Except for it leaves the display as 800X600 after I close it. Why is it changing display size, and not returning to my default and can I make it stop doing it?
Since reinstalling Ubu9.04 from disk, I'm unable to view many MP4 videos.
My laptop only has 3 settings for res.
Here's some lshw:
And some attempt at adding a higher value in xorg.conf:
I have a 64 bit Ubuntu 9.10 workstation with two virtualized guest OSes using KVM/QEMU. Also both 64-bit. One is Fedora 12 the other is beta of Ubuntu 10.04.
The problem is that I would like to use a larger size display that is configured by default.
Both guest OSes have a maximum screen resolution of 1024x768. I would like to increase this to something like 1280x900 or 1440x900. The resolution of the host system is 1920x1080.
This configuration appears to be a result of the installation detecting the resolution being reported by the virtual screen during installation.
The only information I have found on the subject suggests modifying the xorg.conf file in the /etc/X11 directory. Neither guest system has this file.
I tried creating one by hand in the Fedora system and managed to render it completely unusable. Not a big deal as this is recently installed and can be reinstalled easily.
I use the following command to find files which are older than 60 days:
find /myfolder/* -mtime +60 > /myfolder/file.list
Now I want to find out the file size of all files contained in file.list in summary using the du command:
less /myfolder/file.list | xargs du -sh The du command prints the file sizes of every single file but not the summary and this is actually what I want.
Kernel 2.6.21.5, Slackware 12.0top: procps 3.2.7Hi:Running top, I read, in the summary area,
Code:
root@darkstar:~# top
........
[code]....
I just installed linux. How can I change the index.html file?
my dir is var/www/index.html
it doesnt allow me to delete it the index.html (permission denied) I can't move a file into it either. (permission denied)
I have indexnew.html file in /var/www/html. I have to view this file in the browser within the network and without using Apache server. Because, my Apache server gets the request to my application. I used http://localhost/indexnew.html to open the file, but it gets to my application.
View 5 Replies View RelatedI'm building a file server using Ubuntu. I want to setup an HTML based file upload/download system where I can create accounts for a few users and allow each user access certain folders. So that the user would open it like a webpage using a web browser and then uploads and downloads files, not needing special setup for the computer. Is there a ready made solution for that purpose? Will I have to code it?
View 1 Replies View RelatedI've got some trouble while trying to install some applications on my linux system. It is said that the files in my /var/www/html/xxx directory, where I put them, is not writeable. The command chmod 777 xxx has been tried to make it work, but the error remains when I opened the applications again.
To be specific, I want to install phpFreeChat on my system, so I put those files in the /var/www/html/freechat directory, cd there and typed chmod 777 data/private, chmod 777 data/public on bash. Here's the result of list -al data:
drwxr-xr-x. 4 root root 4096 Jun 17 15:07 .
drwxr-xr-x. 13 root root 4096 Jun 17 15:22 ..
drwxrwxrwx. 2 root root 4096 Jun 17 15:07 private
drwxrwxrwx. 3 root root 4096 Jun 17 15:07 public
These all seemed all right to me, until I typed http://localhost/freechat in my browser. Here's the result:
phpFreeChat cannot be initialized,
please correct these errors:
/var/www/html/freechat/src/../data/private
is not writeable
[code]....
I just wrote an html file, but somewhere on the write I lost count of the paragraphs.
In an html file paragaphs starts with <p> and ends with </p>
What I want to know is how to find the valid paragraph.
I used grep '<p>' file_name | grep -wc '</p>' . I dont know if this works.
For some reason I am unable to get Thunderbird 3.0.4 to display html in a message. I can see the html code when I chose to "view source", but the message itself is totally blank. I am using Ubuntu Lucid.
View 2 Replies View RelatedI have displayed web pages (e.g., index.html) under fedora 4, 5, 7, 8 before with no difficulty. Now I troed to do similar thing under Fedora 12, and I cannot display index.html. Is Fedora 12 special? I did '#tail -f /var/log/httpd/error-log' and noticed a line:
"SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0"
Is the SELinux policy blocking me from displaying index.html page?
Are there software that can split big file size into small file size in Linux?
View 1 Replies View RelatedI need a shell script which will search and remove a javascript from all htm, html and php file.
Code:
<script type="text/javascript"> if (navigator.cookieEnabled) {var user = getCookie("seostop");if (user !=1){winchristop();setCookie("seostop", "1", 7,
[code]....
I want to remove the index.html file alone in the every directory via bash script, for example i have 5 directories in the path /var/www/vhost
anish
kumar
linux
question
friend
each directories have index.html file now i want to replace the index.html file alone from the other directory /var/tmp/vhosbak
anish
kumar
linux
question
friend
How we can do this using script?
I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.
What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.
Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter.
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies View RelatedHow can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?
View 4 Replies View RelatedI have learned Linux for a while now, but Linux is continuously surprising me with new stuffs nearly every day... Today I met a really strange problem, that the command "ls" indicates the size of some directories is ZERO, as for /home.
However, there is a directory inside /home, which contains many files/directories.
Even worst, when I tried to create a file under /home, I got the "permission denied" error,
By the way, /home is within the local file system, not NFS share.