No Such file or directory


 
Thread Tools Search this Thread
Operating Systems Linux No Such file or directory
# 8  
Old 02-16-2014
Yes, I do have the sudo root privilege. Here is the output of the command

Code:
$ ls -ld / /bin /usr /usr/bin
dr-xr-xr-x. 25 root root  4096 Feb 14 17:06 /
dr-xr-xr-x.  2 root root  4096 Dec 13 03:50 /bin
drwxr-xr-x. 13 root root  4096 Nov 28 10:16 /usr
dr-xr-xr-x.  2 root root 20480 Dec 13 03:50 /usr/bin

# 9  
Old 02-16-2014
Having read your other thread, please show us what you have mounted, and where.
# 10  
Old 02-16-2014
In the first post for awk it was a link to gawk. You do have the gawk as well right?... why don't you unlink and create a link again?...
This User Gave Thanks to ahamed101 For This Post:
# 11  
Old 02-16-2014
What happens when you run a command in /usr/bin that is not symlinked? On my system "yes" is an example of that.
Code:
$
$ ls -l /usr/bin/yes
-rwxr-xr-x 1 root root 20352 Nov 27  2006 /usr/bin/yes
$ /usr/bin/yes | sed 2q
y
y
$

Also does /usr/bin/awk fail for root?

Also try this:
Code:
$
$ ls -l /usr/bin/awk | od -c
0000000   l   r   w   x   r   w   x   r   w   x       1       r   o   o
0000020   t       r   o   o   t       1   4       J   u   n       2   4
0000040           2   0   1   0       /   u   s   r   /   b   i   n   /
0000060   a   w   k       -   >       .   .   /   .   .   /   b   i   n
0000100   /   g   a   w   k  \n
0000106
$
$

# 12  
Old 02-16-2014
Hi Perderabo,

It yes command is working exactly as your example.

Code:
# /usr/bin/yes | sed 2q
y
y

# ls -l /usr/bin/yes
-rwxr-xr-x. 1 root root 25664 May 16  2013 /usr/bin/yes

Ahamed101 - It seems like I have to create the links again. but a bit concerned if that is the actual cause of issue, because it was working fine previously before I mounted /tmp to another device and then mounted on /usr's device and now moved back to /'s device.
# 13  
Old 02-16-2014
I don't follow that surgery you attempted on your filesystem, but assuming you got stuff back to the original location it should be working now. Try to manually recreate a single and see if that helps. I don't think it will help, but maybe it is worth a try. Try a different shell... maybe your shell's environment is screwed up. Also post the output from df -k.
This User Gave Thanks to Perderabo For This Post:
# 14  
Old 02-17-2014
Thank you all for all your help. I created the links and everything seems to be back to normal again. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on: $ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies

2. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

3. Shell Programming and Scripting

Shell scripting-I need a script which should watch a directory for a file with specific directory

I need a script which should watch a directory for a file with specific directory. If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column. The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies

4. Shell Programming and Scripting

Change to directory and search some file in that directory in single command

I am trying to do the following task : export ENV=aaa export ENV_PATH=$(cd /apps | ls | grep $ENV) However, it's not working. What's the way to change to directory and search some file in that directory in single command Please help. (2 Replies)
Discussion started by: saurau
2 Replies

5. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

6. Shell Programming and Scripting

Script which removes files from the first directory if there is a file in the second directory

Script must removes files from the first directory if there is a file with same name in the second directory Script passed to the two directories, it lies with them in one directory: sh script_name dir1 dir2 This is my version, but it does not work :wall: set - $2/* for i do set -... (6 Replies)
Discussion started by: SLAMUL
6 Replies

7. Shell Programming and Scripting

Move the latest or older File from one directory to another Directory

I Need help for one requirement, I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix. Example: Source Directory : \a destination Directory : \a\b File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt) File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies

8. Shell Programming and Scripting

File transfer from one directory to another directory in unix

Hi, I have to transfer five files from one directory to another directory in unix with the help of shell scripts. This shell script calling the param file as input parameter. Every day one file will come and fall on my source directory. Remaining files will fall on any one of the day of the... (5 Replies)
Discussion started by: easterraj
5 Replies

9. Shell Programming and Scripting

Move a file from windows directory to unix directory

Move a file from windows directory to unix directory, is this possible? if it is, can someone help me on this? Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies

10. UNIX for Dummies Questions & Answers

Copying one file at a time from one directory to another directory.

Hi All i want to write a script which could copy one file at a time from one directory to another directory. Scenerio: Let's say i have 100 file in a dirctory,so i want to copy one file at a time to another directory with a sleep statement in between that of 30 secs. please help me... (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies
Login or Register to Ask a Question