-
Identify the command, options and arguments in the following:
ls -al /etc
Answer:
The command is: ls
There are two options: a and l
The argument is: /etc
hello there, here is an odd question. i know what these commands do but i dont understand what he means by arguments. ls lists the files and folders in a specific directory, a and l are the options, but how is /etc an argument. what does the term argument mean?
-
Senior Member
registered user
/etc is the searchpath to the dir where most (90%+) of systemwide configfiles are situated.
remaining configfiles you have to read the manual for ther specific program.
there is a bunch of files in your /home/username aswell, these are for the users settings.
-
interesting. well what does the term argument mean though. i was reading the floppix stuff and the guy said to identify the options and arguments in this command. i know what the options are but i dont know what the argument is and why. thanx in advance
-
Senior Member
registered user
cp /home/username/text.txt cp /home/username/text2.txt
there cp is copy., /home/username/text.txt is argument 1 and /home/username/text2.txt argument 2.
that is copy 1 to 2, not much more than that.
even a regular expression could be an argument, say cp -a /home/usernamne/* /home/usernamebackup/ the -a is preserve permisions and be recursive (for more look in man cp),
that would copy everything including dirs subdirs with permision preserved... from /home/username to the dir /home/usernamebackup.
and as you know /home/usernamebackup can be a different disk temporarily mounted there, or a diferent partition/disk in the computer...
these things will becoe more clear after a time of use.
-
lol, nice. these are all new terms to me. lol as you can tell. so i take it that the * means everything with in the/username folder. this is going to be tough to do full time work and also school.
Similar Threads
-
By wobbler in forum Customising & Remastering
Replies: 7
Last Post: 11-22-2005, 08:22 PM
-
By bgsneeze in forum Customising & Remastering
Replies: 0
Last Post: 08-27-2004, 03:27 PM
-
By cecilbdemented in forum General Support
Replies: 0
Last Post: 07-31-2004, 10:23 AM
-
By koma in forum General Support
Replies: 7
Last Post: 03-15-2004, 08:04 AM
-
By beforewisdom in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 03-24-2003, 09:39 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
-
Forum Rules

IBM Prototype ES/9000 Mainframe Computer MCM CPU Vintage White Ceramic Gold
$1000.00

IBM MST-2 370 Integrated Circuit Computer Chips Lot Of 43 Rare 1970s Vintage
$249.00

HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer
$165.58

Vintage Telex 952003-112 Mechanical Terminal Keyboard IBM 3270 Mainframe DB25
$679.15

VINTAGE RARE Overland 9 Track tape drive for mainframe computer storage
$800.00

Vintage IBM #192726 Paper Tape Punch Mainframe Computer Programming Tool 1960s
$94.95

DEC ALPHA DS20E system complete, posts good. 512mb, no disks, Digital Equip Corp
$699.00

Vtg IBM Mainframe Prototype Chip Module Lot 146 pc 1988-1993 ES/9000 Lab Arcive
$649.00

SONY VAIO PCV-C12L Pentium 4 3GHz 3GB 120GB SSD NO/OS Retro Desktop Vintage PC
$129.97

MPC ClientPro 545 Pentium 4 2.40GHz 512MB NO/HDD RV100 Vintage PC Retro Computer
$149.97