Results 1 to 7 of 7

Thread: Help me, got some questions.

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    2

    Help me, got some questions.

    Hi guys, I am totally new to Linux and I am using Knoppix to find my way around using Linux. Now there are some basic questions I would like to know. I hope you guys can help me out.

    (Important note! This is info I need for school work. And I am working in the console. So I'm just working with commands and not with a GUI.)


    1) I found some basic commands and I was wondering how to use them, what different options there are and what you use them for etc.
    they are:

    man ls, ls -la, ls /etc | less, ps -aux, grep '#!/bin/sh' /usr/bin/*,


    2) I was looking at the directory structure. What kind of files are where, and what do they do. My question is how (for instance) do I mount the floppydrive, or how do I format one? How do I put my "home"directory on a USB stick?

    3) How do I create users and groups? If for instance I wanted to make a group called "Student" (with the ID "2222") for two users.

    4) I have to create 4 text files that can be read by both users, only user 1, only user 2, and none of them (root). How can I do this?

    5) How can I execute and stop a program or command in the background?

    6) I wanna figure out how VI works, and for instance how to get line numbers on screen.

    7) How can I simply write, compile and execute a c++ program with keyboard as input, screen as output and command lines as parameters)

    If even you have only an answer on 1 of these questions, I would be happy. If you have more answers it is of course, always better.

    I really hope you can help me out. Tnx in advance!

    ps. I do need to know most of it by wednesday. After that you don't really have to bother posting cause then I am supposed to know anyway.

  2. #2
    Member registered user
    Join Date
    May 2004
    Location
    England
    Posts
    30
    1) To access the manual page for ls:

    Code:
    man ls
    This also covers ls -la.
    /etc is the directory containing all your system-wide configuration files. The pipe character connects the output of the command on the left to the input of the command on the right. So in ls /etc | less, the input to the less program is the list of files and folders in /etc.
    grep is a GNU tool, for which info may give more useful information than man:

    Code:
    info grep
    2) For the directory structure see http://www.pathname.com/fhs/pub/fhs-2.3.html.
    To mount a floppy disk try:

    Code:
    mount /floppy
    For formatting any kind of disk, look up mkfs. I think the last part of this question is answered all over the forum (meaning I don't know).

    3) For both users and groups, look up adduser:

    Code:
    man adduser
    4) Use touch to create files, and chown and chmod to change their attributes for access control. The su command will make you root and exit will drop you back to a normal user again.

    5) To start the command sleep 100 in the background:

    Code:
    sleep 100 &
    Its PID (process ID) will pop up, let's say it's 4567. To terminate sleep 100 do this:

    Code:
    kill 4567
    6) Read the manual for vi. You might want to try vim. I don't know how line numbers are done.

    7) You can use g++ directly to compile a simple C++ program.

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    18
    You can find the answer in the following URL for line numbering in VI.

    http://kb.indiana.edu/data/afcx.html...41541.91687.30

    Basically it's escape :set number to turn it on
    and
    escape :set nonumber to turn it off.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    For compiling, just try typing

    cc program.c

  5. #5
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    One more thing to add. You are asking some really general questions about linux. A very good general information documentation about linux is Rute: http://www.icon.co.za/~psheer/book/index.html.gz
    You will find answers to many of your questions there.

  6. #6
    Junior Member
    Join Date
    Oct 2004
    Posts
    2
    Thanks you guys!

  7. #7
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Even though gruntbuggly did such an excellent job of responses, I only have one addition,

    to #4 -=- you can use chown and chmod, which was given, but also chgrp for changing the group -=- even though, if you look at the man pages for chown, there is an option for changing the owner and the group, the chgrp utility will just change the group for you.

Similar Threads

  1. Some Questions
    By NitroSpazzz in forum Laptops
    Replies: 3
    Last Post: 06-29-2005, 04:20 PM
  2. Questions?
    By kn2user in forum General Support
    Replies: 3
    Last Post: 11-23-2004, 08:30 PM
  3. Questions from the new guy
    By Liquidant in forum General Support
    Replies: 2
    Last Post: 05-20-2004, 07:28 PM
  4. A few questions
    By jshah329 in forum Hardware & Booting
    Replies: 3
    Last Post: 05-18-2004, 12:43 AM
  5. two questions
    By schunn99 in forum General Support
    Replies: 2
    Last Post: 02-26-2004, 11:14 PM

Posting Permissions

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


Dell R730 w/ 2x E5-2650v3 10c, 192GB (12x16GB) RAM, H730 Mini, 2x 750W PSU picture

Dell R730 w/ 2x E5-2650v3 10c, 192GB (12x16GB) RAM, H730 Mini, 2x 750W PSU

$349.99



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell EMC NX3230 Server picture

Dell EMC NX3230 Server

$599.99



Supermicro X10SRW-F Server picture

Supermicro X10SRW-F Server

$169.99



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



HP ProLiant DL360 G9 2x Xeon E5-2690 V3 24 Cores 2.6GHz P440ar 32GB DDR4 picture

HP ProLiant DL360 G9 2x Xeon E5-2690 V3 24 Cores 2.6GHz P440ar 32GB DDR4

$105.59



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00