IGNOU BCA MCA FOURUM

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Previous Year Question Papers Subject wise Lessons Solved Assignments Download Free E-books


    Input-Output redirection

    Admin
    Admin
    Admin


    Posts : 13
    Join date : 2009-11-12

    Input-Output redirection Empty Input-Output redirection

    Post  Admin Mon Nov 16, 2009 10:33 am

    Mostly all command gives output on screen or take input from keyboard but in UNIX/LINUX it possible to send output to file or to read input from file. For e.g. $ls command gives output to screen; to send output to file of ls command, $ls>filename

    It means put output of ls command to filename. There are 3 main redirection symbols >,>>,<

    >
    Syntax: command>filename
    To output command result to file.
    Note: that if file already exist, it will be overwritten else new file is created
    Ex: $ls>myfile

      Similar topics

      -

      Current date/time is Thu Mar 28, 2024 9:09 am