Sponsored Content
Full Discussion: . and / usuage
Top Forums UNIX for Dummies Questions & Answers . and / usuage Post 302722185 by Fingerz on Friday 26th of October 2012 12:17:55 PM
Old 10-26-2012
. and / usuage

From what I have read . is for current director and the / represents directory.

So I have a file hello.c in order to run that file I have to type
./hello which is a compiled C program. If I put a space after the ./ I recieve ./ is a directory.

However if I use the cp command
cp /home/user1/file.c .
The file will be copied to current working directory where ./ is not needed.

Anyone shed some light on what exactly ./ used for.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk usuage

can any1 guide me on simple awk to do extraction and calculation? like for example if got data in 123.data how to i extract and sort the data giving my values like: don,waiter,FnB,1500 mary,waitress,FnB,1500 alex,manager,hotel,2500 leo,ast manager,hotel,2000 how do i use this command to do... (1 Reply)
Discussion started by: crunchyuser
1 Replies

2. HP-UX

monitor memory usuage

Hi, We have HP-UX 11.23 and i want to use glance utility to monitor the memory usuage. Can someone tell me how to sort by memory usuage in glance utility? Thx (1 Reply)
Discussion started by: rockcapri
1 Replies

3. Solaris

Memory usuage per zone in solaris

Hello all, How can i find the memory usuage per zone in solaris. (5 Replies)
Discussion started by: sophos
5 Replies

4. UNIX for Dummies Questions & Answers

Alias Usuage

Hi All I am new to the Unix World.I have question about alias.I learnt that alias allows to have a small more familiar command or name to execute a long string.I understand that I use C shell command and emacs editor I tried editing the .cshrc.common file in order to set my environment... (5 Replies)
Discussion started by: Ratna_Ranjan
5 Replies

5. Shell Programming and Scripting

Need Generic command for Memory usuage on Linux and Solaris

Hi, I m using the below commands to find out the RAM and SWAP Memory usage on Linux. free -m while I m using the below for Solaris prstat -cZ 1 1 Is there a generic command that I can used for both Linux and Solaris to get RAM and SWAP memory usage ? (3 Replies)
Discussion started by: mohtashims
3 Replies
MDM.SCREEN(1)							   User Commands						     MDM.SCREEN(1)

NAME
mdm.screen - run a command under mdm-master SYNOPSIS
mdm.screen [-c iospec] [-n slaves] command DESCRIPTION
mdm.screen runs command under mdm-master so that mdm-run commands in command can run in parallel. This program is a part of the Middleman System (mdm). OPTIONS
The mdm.screen command has two optional options. -c iospec The iospec file (see below). -n slaves The number of mdm-slave process to start (default 6). THE IOSPEC FILE
mdm-master uses the iospec file to decide whether two commands interfere with each other, and it only runs two commands at the same time if they do not interfere. Each line of the iospec file specifies the I/O behavior of a program, unless the line starts with a '#' character, in which case the line is treated as comments and ignored. The format is as follows: program spec spec ... program names the program whose behavior you are specifying. For each spec element, the first character indicates usage, and the remaining characters indicate resource. A resource that starts with a '-' character represents the argument of the corresponding program option. A resource that is an empty string represents a program argument. A resource that is not empty and does not start with a '-' character represents the resource string itself. A usage is typically an upper-case character. If two commands access the same resource with different usage, mdm-master will not run these two commands at the same time. Furthermore, if a command access a resource with 'W' usage, mdm-master will not run it with any command that access the same resource in any way (including 'W'). There is a special case: if usage is '0' and resource starts with a '-' charac- ter, it means that the resource program option does not take any arguments. All programs has an implicit spec 'Rglobal', so if you mark a program as 'Wglobal', it will not run while any other command is running. Here is an example to help clarify matters. Suppose we have the following iospec file: cc W-o 0-c R rm W Then these two commands can run at the same time: cc -o pa pa.o lib.o cc -o pb pb.o lib.o These two commands cannot run at the same time: cc -o pa.o -c pa.c cc -o pa pa.o lib.o And these two commands also cannot run at the same time: cc -o pa pa.o lib.o rm pa EXIT STATUS
The exit status of mdm.screen is 0. EXAMPLE
Here is what you do to decompress all files with .gz extension in the current directory tree. mdm.screen find . -iname '*.gz' -exec mdm-run gunzip {} ; Since we run find under mdm.screen and invoking gunzip under mdm-run, we specify that we wish to run the gunzip commands in parallel. SEE ALSO
mdm-run(1), mdm-sync(1), ncpus(1) Linux 2009-03-06 MDM.SCREEN(1)
All times are GMT -4. The time now is 09:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy