Find the answer to your Linux question:
Results 1 to 4 of 4
All members of the forum are requested that plz give me any idea to start with the cd(change directory) comand to implement in linux.I have searched on it but stucked ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    8

    Smile help in implementing cd command

    All members of the forum are requested that plz give me any idea to start with the cd(change directory) comand to implement in linux.I have searched on it but stucked and tommorow is the last date of submitting my project.

    I am good in Data Structure and C++ but here i am totaly struct.
    Please rep if you all have some important data to start with.

    Not the complete help ofcourse

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    From the command line, do:
    Code:
    man cd
    ...for detailed instructions. Also see my response to your other thread about 'ls' which includes the use of the cd command.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    45
    Answer:
    Quote Originally Posted by Rida
    […] plz give me any idea to start with the cd(change directory) comand to implement in linux […]
    Thereʼs hardly anything left to implement. You can use the «chdir()»¹ function directly.

    Footnotes:
    1. chdir(2): change working directory - Linux man page

  4. #4
    Just Joined!
    Join Date
    Mar 2009
    Posts
    8

    having problem in loop of Shell

    I made a while loop which exits if the user types 'exit'
    But when my shell exit the whole linux become stuck.and there no way lefts behind instead of stoping and rebooting the linux on VMware.

    kindly help me if there is another way of closing the loop and returning to the original positio;

    e.g
    [MyshellOS]$ exit

    it must show that
    [root@localDesktop]# what is the proper way??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...