1
Which command do I use to go straight to folder login without having to put my name example cd home/leonardovillela
.?
1
Which command do I use to go straight to folder login without having to put my name example cd home/leonardovillela
.?
1
Just use the command cd ~
, with it you will go to the directory home of the current user.
Other forms would be: just cd
and cd $HOME
.
Browser other questions tagged linux shell shell-script
You are not signed in. Login or sign up in order to post.
the command is the same, but has a shortcut to home folder:
cd ~
– Bacco
@Bacco, if you want to answer the question let me know, I ended up posting an answer but I didn’t see your comment.
– Wakim
@Wakim did not post as an answer because he thinks it is not a question in the scope of the site, and this kind of thing I think fits more as a comment anyway. Anyway, thank you for asking.
– Bacco
@Bacco, in my opinion is within the scope yes,
shell-script
is a programming language... as well as doubts related to filesbatch
are within the scope, I believeshell-script
also (http://meta.pt.stackoverflow.com/questions/1266/cria%C3%A7%C3%A3o-de-arquivo-bat-entra-no-escopo-do-sopt).– Wakim
For me the mere command syntax query is not a shell-script question, regardless of where the command will be used (but it is perfectly valid your opinion to be different, after all we are in community ;) ).
– Bacco