Create A File With Echo Linux Shell Command
create a file with echo linux shell command
create, a, file, with, echo, linux, shell, command
Create A File With Echo Linux Shell Command
Post Description: create a file with echo linux shell command
POST# 1124
Posted On: Fri Apr 11, 2008 11:09 am
unix
Topic: Create A File With Echo Linux Shell Command
i have a linux dedicated server with you and im not an expert on linux but i remember when i was taking a linux class in school, i remember we could make a file with the echo command but i forgot how to do it.

i remember we can make the file with the output of the command

can you tell me

for example, i want to make a file with the a list of my files in is, you know something simple so i can understand

i know the command for listing is ls

so how can i do it?


Fri Apr 11, 2008 11:30 am
1
hostman
Reply #1854
well lets say you wan to do that. to create a file from the output of a command you can do this for example:

ls > list.txt


this is saying, create a file called list.txt from the output of ls

now when you do

simple huh

hope this helps
Fri Apr 11, 2008 11:44 am
2
hostman
Reply #1855
when i try to open it with my browser, i see a bunch of little squares why is that?

like this for example:

NNAAMMEE
rpm - RPM Package Manager

SSYYNNOOPPSSIISS
QQUUEERRYYIINNGG AANNDD VVEERRIIFFYYIINNGG PPAACCKKAAGGEESS::
rrppmm {--qq||----qquueerryy} [sseelleecctt--ooppttiioonnss] [qquueerryy--ooppttiioon


i wish i could make linux files view in html utf-8
Fri Apr 11, 2008 11:52 am
3
unixusers45
Reply #1856
you can use the command

man2html

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload