linux question

Posted on 2004-10-28
Medium Priority
Last Modified: 2013-12-16
Hi all

Can anyone tell me the differance between

1) ls –ax > fil1  

2) ls –ax >> fil1

Thanks davy
Question by:davy999
LVL 40

Accepted Solution

jlevie earned 200 total points
ID: 12433236
The first creates a new output file for the results and the second appends the output to a file (creating the file if necessary).
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12438563
In addition to what jlevie said, the first one will overwrite a file named fil1, so you will lose the original file contents.

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Can you run Linux on a Windows system?  Yep.  Here's how.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question