(BASH) Added directory of file to path, then wrote command: /(file name) : -bash: /hey.txt: No such file or...
Diamondize Some Text
33 Months on Death Row
Displaying characteristics of the Hero in a console game
Perform a predetermined set of operations on a large sequence
Is Schrodinger's Cat itself an observer?
They say I should work on bigger things
What is it called when you use wrong but smart arguments?
What happens if a geocentric model of the world were correct?
How should I tell a professor the answer to something he doesn't know?
How can a "proper" function have a vertical slope?
"Table" method for expanding brackets vs "each term in the first bracket gets multiplied by each term in the second bracket"
Can you set fire to beer barrels?
What's the current zodiac?
What is the name for a fluid transition between two tones? When did it first appear?
7 mentions of night in Gospel of John
Using Terminal` (ASCII plots) in Wolfram 12
How to protect my Wi-Fi password from being displayed by Android phones when sharing it with QR code?
"A tin of biscuits" vs "A biscuit tin"
Legality of creating a SE replica using SE's content
Does a reincarnated Draconic Bloodline Sorcerer save his class abilities?
Is the value of a probability density function for a given input a point, a range, or both?
Do you say "good game" after a game in which your opponent played poorly?
Novel set in the future, children cannot change the class they are born into, one class is made uneducated by associating books with pain
Is fascism intrinsically violent?
(BASH) Added directory of file to path, then wrote command: /(file name) : -bash: /hey.txt: No such file or directory [on hold]
Manipulate file name piped from find commandHow do I delete files with spaces in them in bash script?Will $0 always include the path to the script?CRON path problemsWhy isn't this directory being added to my PATH when I use sudo?How to run one command with a directory as argument, then cd to the same? I get “no such file or directory”executable within $PATH still going unrecognizedHow to allow a script to be run by anyone anywhereadding filepath in the filesurxvt -e doesn't source .zshrc
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
so I created a file "hey.txt" in my current directory, .
next, I wrote the command
export PATH=$PATH:$(pwd)
echo $PATH to make sure the directory is in my path, it is.
then I wrote /hey.txt and received the message:
"-bash: /hey.txt: No such file or directory"
but when I write ./hey.txt it opens my file
I'm confused. I though that if I added the directory of a file to the path, I could simply use the / command and it would open my file.
edit: I figured it out myself... no need for the "/" character before the filename if the directory is already in the PATH. If a moderator could please delete this thread I would appreciate it :)
bash path
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Jeff Schaller♦ 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment
|
so I created a file "hey.txt" in my current directory, .
next, I wrote the command
export PATH=$PATH:$(pwd)
echo $PATH to make sure the directory is in my path, it is.
then I wrote /hey.txt and received the message:
"-bash: /hey.txt: No such file or directory"
but when I write ./hey.txt it opens my file
I'm confused. I though that if I added the directory of a file to the path, I could simply use the / command and it would open my file.
edit: I figured it out myself... no need for the "/" character before the filename if the directory is already in the PATH. If a moderator could please delete this thread I would appreciate it :)
bash path
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Jeff Schaller♦ 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago
add a comment
|
so I created a file "hey.txt" in my current directory, .
next, I wrote the command
export PATH=$PATH:$(pwd)
echo $PATH to make sure the directory is in my path, it is.
then I wrote /hey.txt and received the message:
"-bash: /hey.txt: No such file or directory"
but when I write ./hey.txt it opens my file
I'm confused. I though that if I added the directory of a file to the path, I could simply use the / command and it would open my file.
edit: I figured it out myself... no need for the "/" character before the filename if the directory is already in the PATH. If a moderator could please delete this thread I would appreciate it :)
bash path
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
so I created a file "hey.txt" in my current directory, .
next, I wrote the command
export PATH=$PATH:$(pwd)
echo $PATH to make sure the directory is in my path, it is.
then I wrote /hey.txt and received the message:
"-bash: /hey.txt: No such file or directory"
but when I write ./hey.txt it opens my file
I'm confused. I though that if I added the directory of a file to the path, I could simply use the / command and it would open my file.
edit: I figured it out myself... no need for the "/" character before the filename if the directory is already in the PATH. If a moderator could please delete this thread I would appreciate it :)
bash path
bash path
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago
user375922user375922
1
1
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user375922 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Jeff Schaller♦ 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Jeff Schaller♦ 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Jeff Schaller♦ 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
If this question can be reworded to fit the rules in the help center, please edit the question.
1
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago
add a comment
|
1
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago
1
1
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago
add a comment
|
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
You can delete it yourself. There should be a delete-button.
– Freddy
1 hour ago