-
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

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

SK hynix 32GB PC4-25600 DDR4-3200 Memory - HMAA4GR7AJR8N-XN
$189.99

Lot of 4 16GB SK Hynix HMA82GR7AFR8N-VK 2RX8 DDR4 PC4-2666V RDIMM Server Memory
$374.99

✅ MICRON MTA18ASF2G72PDZ-3G2R1 16GB 2Rx8 DDR4-3200 PC4-3200AA REG ECC Memory
$119.97

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

MTA18ASF4G72PDZ-3G2B2 MICRON 32GB (1X32GB) 2RX8 PC4-3200AA MEMORY
$348.00

Intel Optane NMA1XXD128GPS DDR4 2666 4Rx4 ECC 128GB Server Ram
$80.00

Lot Of 4 NEW SAMSUNG 16GB PC4-2933Y-RC2-12-DC1 Memory
$299.00

Micro SD Adapter To SD HC SDHC Memory Card Adapter Reader NEW
$1.39