10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with.
prod @ root... (3 Replies)
Discussion started by: Dark0Prince
i create the user
useradd -d /home/kk kk
when i tried to login to kk
i get a error user directory doesn't exist
then i tried
passwd kkkwhen i tried to login to kkk
i get the same error user directory doesn't exist. (4 Replies)
Discussion started by: vipinkumarr89
3. Shell Programming and Scripting
Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
Discussion started by: Jack_Maloney
4. Shell Programming and Scripting
can any one tell me how to check whether the file is existed in a directory or not .
let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail ..
i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Discussion started by: sravan008
5. UNIX for Dummies Questions & Answers
I know how to use the test command ( ...) to find a single given name file.
However, I have a case in which I have a directory with one file and one sub-directory. I know that the file starts with "fub".
The command doesn't work if i call the file "fub*" as it doesn't understand I meant a... (2 Replies)
Discussion started by: buj
How to troubleshoot autofs /mnt/sum: does not exist in one of the sun server?
This was working previously. No issue on NFS mounting.
root@devapp # cat /etc/dfs/dfstab
share -F nfs -o rw /linxnet/server2
# Master map for automounter
/net -hosts ... (7 Replies)
Discussion started by: KhawHL
7. Shell Programming and Scripting
I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx
ll -d /abc > /dev/null 2>&1
echo "the directory exist !!"
... (7 Replies)
Discussion started by: ust
8. Shell Programming and Scripting
I want to write a shell script to check whether a directory (say A) is existing in a given location and if it is not, create it. (3 Replies)
Discussion started by: sabya
9. Shell Programming and Scripting
There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script.
ARRAY_ENV="remoteName201"... (2 Replies)
Discussion started by: weonpc
10. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh