10-13-2005
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just want to exit my script in a new directory from a bash shell. Problem is that the script internally changes to the directory I want to move to, however when exits is still in the original directory. Does that make sense?
ie usage: goto null
changing from /usr/bin/xtra/test/test3/
... (8 Replies)
Discussion started by: Shakey21
8 Replies
2. UNIX for Dummies Questions & Answers
What is the purpose (function) of the following upper level directories: -
/bin
/dev
/etc
/home
/mnt
/media
/sbin
/tmp
/var
I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are.
Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
2 Replies
3. UNIX for Advanced & Expert Users
I am getting the different accessing permissions for the directories ,for some directories it is drwxr-sr-x, for some other directories it is like drwxr-xr-x.
what is the difference between these 2 access permisions of the directories? (1 Reply)
Discussion started by: bishnu.bhatta
1 Replies
4. Shell Programming and Scripting
Hi All
I need to create a script which would change Permissions to 775
All the Files and directories will be mentioned in the Paramter files
Can anyone give a Hint how to proceed in this ??
THanks (1 Reply)
Discussion started by: ranga27
1 Replies
5. Shell Programming and Scripting
I can't seem to solve this problem. :mad::mad: Please assist. Thanks!
#!/bin/bash
UserDir="$(echo ~$1)"
echo "Changing directory with variables"
cd "$UserDir"
echo "Changing directory without variables"
cd ~pearsn
pwd
Output:
pearsn$ sh -x ./test.bash pearsn
++ echo '~pearsn'
+... (6 Replies)
Discussion started by: twinturbos52
6 Replies
6. Shell Programming and Scripting
Hello all,
Here's the deal...I have one directory with many subdirs and files.
What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.
A script for... (5 Replies)
Discussion started by: ejianu
5 Replies
7. UNIX for Dummies Questions & Answers
How can i create a file, for example with a touch command, in a different directory from the current one i am in, in one single line command? (1 Reply)
Discussion started by: glock1800
1 Replies
8. Programming
Hi,
I am trying to write zeroes to the hdd using a c program. I don't want to use the dd or ddrescue or any such inbuilt program because of reasons like real time progress, writing custom patterns. (my program is more like an erasure application, but does only zero fill).
here are the steps... (35 Replies)
Discussion started by: sponnusa
35 Replies
9. Shell Programming and Scripting
hi , could you help me with shell scripting
in a shell script i have these commands
a=`ls -R $dir | grep ./ `
cp -R ./$a/* ./$output/
with the first command i have all the directories with the second command i want to copy them in a new directory something like this... (2 Replies)
Discussion started by: faethon
2 Replies
10. Red Hat
My query please:
What I saw how access times of a file and directories work.
1) For a file the access time is the time when I 1st access it after last modification of the file, i.e., if the file is modified at 10 AM and then I access it at 11 AM. After than whenever I access without... (7 Replies)
Discussion started by: ravisingh
7 Replies
LEARN ABOUT DEBIAN
rfmkdir
RFMKDIR(1) Rfio User Commands RFMKDIR(1)
NAME
rfmkdir - make remote directories
SYNOPSIS
rfmkdir [ -m mode ] [ -p ] directory...
DESCRIPTION
rfmkdir provides an interface to the shift remote file I/O daemon (rfiod) for creating remote directories in mode 777 (possibly altered by
umask(1)). The directory argument is either a remote directory name of the form:
hostname:path
or a local directory name (not containing the :/ character combination). Creation of a directory requires write permission in the parent
directory.
OPTIONS
The following options apply to rfmkdir:
-m mode
This option allows users to specify the mode to be used for the new directories. Choices for modes can be found in chmod(1).
-p With this option, rfmkdir creates dirname by creating all the non-existing parent directories first.
SEE ALSO
mkdir(1), umask(1), mkdir(2), rfiod(1)
AUTHOR
LCG Grid Deployment Team
LCG
$Date: 2005/03/31 13:13:04 $ RFMKDIR(1)