Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Need help with linux command? (Solved)  (Read 6920 times)

0 Members and 1 Guest are viewing this topic.

fm_hyudin

    Topic Starter


    Greenhorn

    Need help with linux command? (Solved)
    « on: June 06, 2008, 08:21:15 PM »
    Hi..

    I need to do my assignment related to linux command by testing them and do a screenshot.

    The question that i got stuck is

    1. Create a file, namely “operating_system” with zero size


    I tried using these commands and its failed.I tried ubuntu and opensuse.Plz help me.

    I got these information from a website on which command to use for my problem but i still can't get the command to work.

    Plz help me..Thanks in advance.

    « Last Edit: June 16, 2008, 06:26:56 PM by fm_hyudin »

    Aegis



      Expert

      Thanked: 67
      • Yes
      • Yes
      • Brian's Mess Of A Web Page
    • Experience: Experienced
    • OS: Windows 10
    Re: Need help with linux command?
    « Reply #1 on: June 07, 2008, 12:14:12 AM »
    Try the information HERE

    Did you try any Internet searches?


    "For you, a thousand times over." - "The Kite Runner"

    #groff -Tascii -man yakub

    • Guest
    Re: Need help with linux command?
    « Reply #2 on: June 07, 2008, 12:21:55 AM »
    i think you already no this
         when you are using "operating system" shell will take it as different words
    so type

    1.               vi  "operating \system "


    "operating \system"====>>>seems to be one word to the shell
    (*if it is a command you must include the path i.e., your current command path must be included in the $PATH *)


    try

    #groff -Tascii -man yakub

    • Guest
    Re: Need help with linux command?
    « Reply #3 on: June 07, 2008, 12:25:09 AM »
    what do u mean by
           $operating sytem ls -l new.file

    Aegis



      Expert

      Thanked: 67
      • Yes
      • Yes
      • Brian's Mess Of A Web Page
    • Experience: Experienced
    • OS: Windows 10
    Re: Need help with linux command?
    « Reply #4 on: June 07, 2008, 12:34:32 AM »
    He's trying to list the file with the  ls -l command to see if the file was created.

    Are you trying to tell him to use the vi editor to create the file?


    "For you, a thousand times over." - "The Kite Runner"

    #groff -Tascii -man yakub

    • Guest
    Re: Need help with linux command?
    « Reply #5 on: June 07, 2008, 12:41:38 AM »
     I AM trying to ask is why he use "operating system "before ls -l

    Aegis



      Expert

      Thanked: 67
      • Yes
      • Yes
      • Brian's Mess Of A Web Page
    • Experience: Experienced
    • OS: Windows 10
    Re: Need help with linux command?
    « Reply #6 on: June 07, 2008, 12:47:29 AM »
    Yes -- I see it now!  I missed it before.

    I never thought about using vi -- I guess it would work that way, too!


    "For you, a thousand times over." - "The Kite Runner"

    fm_hyudin

      Topic Starter


      Greenhorn

      Re: Need help with linux command?
      « Reply #7 on: June 07, 2008, 02:32:11 AM »
      Try the information HERE

      Did you try any Internet searches?

      Yeah.I already tried that link earlier and i got those commands which i tested from there.I already google but failed.I hope you can help me.

      i think you already no this
           when you are using "operating system" shell will take it as different words
      so type

      1.               vi  "operating \system "


      "operating \system"====>>>seems to be one word to the shell
      (*if it is a command you must include the path i.e., your current command path must be included in the $PATH *)


      try

      I don't really understand what you're trying to explain mate.I need to create a file name called operating system with zero size.So, i tried that command which i showed in the ubuntu screenshot.I'm not sure if i typed it correctly or not.plz correct me id i'm wrong.thanks in advance.

      He's trying to list the file with the  ls -l command to see if the file was created.

      Are you trying to tell him to use the vi editor to create the file?

      Yeah.I was trying to see if the file is created or not.sorry if i did it wrongly and plz fell free to correct me.Tq.
      Yes -- I see it now!  I missed it before.

      I never thought about using vi -- I guess it would work that way, too!


      I need to use the terminal in order to show my screenshot for that question.Plz show.Thanks in advance.


      Aegis



        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Need help with linux command?
      « Reply #8 on: June 07, 2008, 06:32:13 PM »
      So, at the command prompt, you tried


      $ touch operating_system


      and it didn't create the file?


      "For you, a thousand times over." - "The Kite Runner"

      fm_hyudin

        Topic Starter


        Greenhorn

        Re: Need help with linux command?
        « Reply #9 on: June 09, 2008, 03:53:37 AM »
        let me try and give a reply back.thanks alot for your help. :)

        friny



          Beginner
          Re: Need help with linux command?
          « Reply #10 on: June 10, 2008, 05:18:35 AM »
          So, at the command prompt, you tried


          $ touch operating_system


          and it didn't create the file?

          It works perfectly!

          fm_hyudin

            Topic Starter


            Greenhorn

            Re: Need help with linux command?
            « Reply #11 on: June 16, 2008, 06:26:33 PM »
            It works.Thanks alot for all your help.