LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2021, 08:09 PM   #1
Lawsonspoon
LQ Newbie
 
Registered: May 2021
Posts: 1

Rep: Reputation: Disabled
Question cd /tmp is not working it keep saying /tmp is not a directory


Please help to cd to /tmp.
Am using PuTTY

Release 0.74

Build platform: 64-bit x86 Window.
Am copy a file to /tmp directory but it says no directory.
I tried this code cd /tmp to get into it working area but it says -bash cd /tmp:no file or directory

Last edited by Lawsonspoon; 05-03-2021 at 09:21 PM. Reason: questions wasnt clear to people so they asked me to make it clearer
 
Old 05-03-2021, 08:46 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Please provide more information, such as, for example, which Linux distro you are using.
 
Old 05-03-2021, 08:47 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,711

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

What distribution and version are you using?
 
Old 05-03-2021, 09:39 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Please post the output of the following command:
Code:
 $ ls -la /
As an aside, the latest versions of Windows come with OpenSSH. You can use it at the command prompt.
 
Old 05-04-2021, 03:39 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
To extend what rkelsen is saying, if /tmp is a directory, you expect to see something like this (notice the "d"):

drwxrw-xr-x ... This means "directory."

Or you might find an "l" (ell ...) instead, which means that it's actually a "symbolic link." In which case you will find at the end of the same line: -> somewhere-else. Which means that it "refers to" somewhere-else, and that is the location which must exist. (Use ls -la somewhere-else to check it out.)

If you don't find an entry for /tmp at all, it means that something or someone deleted it ... highly unusual. But it's entirely possible that it's a symbolic-link to somewhere that is now gone. (Your job, next, is to find out why.)

P.S.: I presume that you are not attempting to do this "in a container."

Last edited by sundialsvcs; 05-04-2021 at 03:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to delete a directory in /tmp directory pradeepdee6 Linux - Newbie 7 12-14-2012 03:41 AM
[SOLVED] Why does gadmin-proftpd keep saying login incorrect? animebsd Linux - Server 1 11-25-2010 06:52 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration