-
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

HP ProLiant MicroServer AMD Athlon II Neo N36L 1.3GHz 8GB RAM 4-Bay NAS Server
$99.00

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3
$219.99

Supermicro 721-2 Mini Tower Black Computer Server NO Hdd
$375.00

Supermicro 505-2 Server
$280.00

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99

1U Supermicro SuperServer 5019D-4C-FN8TP Xeon D-2123IT 4 Core 32GB X11SDV-4C-TP
$699.00

Supermicro 1U Server X11SCW-F Xeon E-2174G 16GB RAM 1x M.2 NVME 3x PCI-e 2x PSU
$220.00

HP PROLIANT MICROSERVER GEN8 E3-1220LV2 @ 2.30GHz, 8GB RAM, NO HDD/OS
$166.47

BOXX B157552 SuperMicro X10DRT-L 2x Intel 2630V4 NO RAM & SSD Server
$160.99

Supermicro CSE-833 3U 8-Bay Barebones, w/ power supply, trays, backpane, fans
$200.00