command line

Discussion in 'Computers and The Internet' started by Ricky(dos)Martinez, Oct 8, 2008.

  1. Ricky(dos)Martinez

    Ricky(dos)Martinez Member

    Messages:
    567
    Likes Received:
    0
    So i have an operating systems test coming up it's pretty much command line stuff for windows, dos, and linux. Creating directories, files, deleting files all that good stuff. Anyone know of a site for commands and whatnots the book we use in class is ok really not a big help lol.
     
  2. brack1936

    brack1936 Member Lifetime Supporter

    Messages:
    985
    Likes Received:
    45
    Some of us remember DOS, some of us don't. I used to be able to tap in to a huge work pool because I knew DOS. Even simple things such as installing Windows 98 were a problem. Sometimes DOS catches people out these days, but not as often as in the past.

    Here are some commands;

    Change Directory: cd\
    Change to "A" drive: a:
    Delete a file; del something.something
    Delete all ".exe" files; del *.exe
    Rename a file"; ren [filename]
    dir; list all files in directory

    Face it .... there are a lot of them - some really cool ones - and lets wait for someone to post a link :) Or you are welcome to query any commands you don't understand. My memory may provide some answers. MAY!
     
  3. Ricky(dos)Martinez

    Ricky(dos)Martinez Member

    Messages:
    567
    Likes Received:
    0
    Got another question....how would you remove all the files owned by a user in the /users directory in unix?
     
  4. brack1936

    brack1936 Member Lifetime Supporter

    Messages:
    985
    Likes Received:
    45
    This page - http://www.uic.edu/depts/adn/seminars/unix-intro/filemgmt.html suggests that if you are in a particular directory, typing "rm *" will delete all files in the current directory. That's news to me! I never got in to Unix but I find it interesting because it's similar to the rem command I used to use when playing around with config.sys.
     
  5. Adderall_Assasin

    Adderall_Assasin Senior Member

    Messages:
    1,266
    Likes Received:
    1
    Unix/Linux

    change to a static directory
    change to a relative directory
    to remove all files in a directory
    to remove an empty directory
    to remove a directory with files in it
    Create an empty file
    create an empty directory
    list files in a directory
    view contents of a file
    or
    delete all files in user1's home directory
    delete the home directory of user1
    You can find information in the manual pages, aka man pages. Each basic command has an entry. To get info about a command, type:
    For example:
    Remember that Unix/Linux is case sensitive. You can have two files named file1 and File1 that are different. Don't use upper case for commands (unless the command has an upper case letter).
     
  6. brack1936

    brack1936 Member Lifetime Supporter

    Messages:
    985
    Likes Received:
    45
    Hey that's interesting. Maybe I'd like Linux
     
  7. Ricky(dos)Martinez

    Ricky(dos)Martinez Member

    Messages:
    567
    Likes Received:
    0
    thanks adderall and when you say directory you mean dir right? lol
     
  8. Ricky(dos)Martinez

    Ricky(dos)Martinez Member

    Messages:
    567
    Likes Received:
    0
    and how do you get back to the regular terminal window after using the man command for some reason it wont and i have to x out the window
     
  9. coders333

    coders333 Member

    Messages:
    248
    Likes Received:
    0
    press Q
     
  10. Adderall_Assasin

    Adderall_Assasin Senior Member

    Messages:
    1,266
    Likes Received:
    1
    Lol yeah. Q for quit.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice