Find Stat Error In Unix
Contents |
known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to find stat() error no such file or directory Page... linux operating commands and unix operating commands /bin/find: stat() error
Stat No Such File Or Directory C
such file or directory Solaris Page 1 of 5 1 2345 > Thread Tools Search this Thread
Stat Failed No Such File Or Directory
Display Modes #1 06-04-2013 prash358 Registered User Join Date: Sep 2011 Last Activity: 16 October 2013, 4:04 PM EDT Location: Sydney, Australia Posts: 117 Thanks: 11 Thanked 0 Times in 0 Posts /bin/find: stat() error
Stat Error 2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site stat error codes About Us Learn more about Stack Overflow the company Business Learn more about stat no such file or directory sftp hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & statistical error Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody http://www.unix.com/solaris/227199-bin-find-stat-error-file-no-such-file-directory.html can ask a question Anybody can answer The best answers are voted up and rise to the top “find: .: No such file or directory” while using find on the current directory up vote 8 down vote favorite 1 Find command seems not to work at all. For example, I'm in a directory where there absolutely is file named index.php and I execute this: [root@server htdocs]# find http://unix.stackexchange.com/questions/137101/find-no-such-file-or-directory-while-using-find-on-the-current-directory . -name "index.php" find: .: No such file or directory I always get this no such file or directory error. No matter what path I define, or what file I search for, I always get this error. I'm pretty sure that I'm overlooking something very simple. Can someone point out what I'm doing wrong? [root@server htdocs]# pwd /srv/www/htdocs [root@server htdocs]# type -a find find is /usr/bin/find [root@server htdocs]# ls -la | grep index.php -rw-rw-r-- 1 andris users 413 Sep 1 2013 index.php [root@server htdocs]# find . -name "index.php" find: .: No such file or directory [root@server htdocs]# find . . find: .: No such file or directory [root@server htdocs]# stat . File: `.' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: ca00h/51712d Inode: 155686 Links: 12 Access: (0775/drwxrwxr-x) Uid: ( 504/ andris) Gid: ( 100/ users) Access: 2014-06-17 19:37:22.000000000 +0000 Modify: 2014-06-08 21:06:16.000000000 +0000 Change: 2014-06-08 21:06:16.000000000 +0000 [root@server htdocs]# find --version GNU find version 4.2.27 Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION SELINUX strace find . output: https://gist.github.com/andrisp/f3adaf740548eead33da [root@server htdocs]# find . -noleaf -name "index.php" find: .: No such file or directory find share|improve this question edited Jun 17 '14 at 20:11 asked Jun 14 '14 at 11:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://unix.stackexchange.com/questions/172385/cp-cannot-stat-no-such-file-or-directory About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can no such ask a question Anybody can answer The best answers are voted up and rise to the top cp: cannot stat : No such file or directory up vote 3 down vote favorite I am getting an error when I try to copy a file from my local computer to a remote server with ssh. I get the same error whether I use cp or scp. Here is no such file my input at the resulting error: [root@xxx.xx.xxx.xx /]# cp /home/username/some.xml root@xxx.xx.xxx.xx:/path/to/directory/ cp: cannot stat ‘/home/username/some.xml’: No such file or directory I have checked, and there is definitely a file at the path /home/username/some.xml on my local machine. Both the local computer and the remote server are running CentOS 7. How can I resolve this error and copy successfully? ssh centos cp scp share|improve this question edited Dec 9 '14 at 21:13 asked Dec 9 '14 at 20:27 CodeMed 96193267 1 Can you paste the output of (as root) ls -l /home/username/some.xml ? –Mark Plotnick Dec 9 '14 at 20:37 You need to get the correct path for the filename to start with, if you can find the file in the file browser you should be able to find it in the terminal by navigating directories with cd and using ls to view further files & directories. –Dayvo Dec 9 '14 at 20:45 @MarkPlotnick Your suggestions caused me to solve the problem. As root@remote.server.ip, I typed exit, then typed the scp command above and it worked. The problem was that I was logged in as root@remote.web.server, so it was only seeing the directory structure of r