0

In terminal of my vs code, while giving the command ls -a or ls -lart it's not showing the hidden files.It's showing error.

In terminal of my vs code, while giving the command ls -a or ls -lart it's not showing the hidden files.It's showing error. Like...Get the childItem : parameter cannot be processed because the parameter name 'a' is not specified, 'a' is ambiguous . Possible matches include:-Attributes-Directory - File-Hidden -readonly -system ..

6th Feb 2024, 2:36 AM
Melita
8 Réponses
+ 4
what kind of terminal are you using? click the terminal tab, then the + icon to select the type of terminal, then select the Git-bash option
6th Feb 2024, 3:07 AM
Bob_Li
Bob_Li - avatar
+ 4
vscode supports selection of different kinds of terminals.
6th Feb 2024, 4:22 PM
Bob_Li
Bob_Li - avatar
+ 3
maybe it is not in that directory, or it does not exist at all... find . -name ".git" would search for .git in the subfolders and display it if it exists.
6th Feb 2024, 10:58 PM
Bob_Li
Bob_Li - avatar
+ 1
I have used Default terminal of vs code editor .Okay , I will try by using gitbash terminal . Thank you for response.
6th Feb 2024, 4:17 PM
Melita
+ 1
Yes, It's working but while i gave command ls -lart It's showing like total 24 files. And . git file not showing. For ls -a command It's showing ./ ../..reponame . . git file should visible or not?
6th Feb 2024, 4:55 PM
Melita
+ 1
https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://kodekloud.com/blog/file-count-in-directory-linux/%23:~:text%3DTo%2520count%2520all%2520files%252C%2520both,of%2520lines%2520in%2520the%2520output.&ved=2ahUKEwiiwa7qsJiEAxVWU_UHHUw4DAEQFnoECBMQBQ&usg=AOvVaw2NUMx-69pAeKg0aH1G-bx2
7th Feb 2024, 4:27 AM
Bob_Li
Bob_Li - avatar
0
He
6th Feb 2024, 11:02 AM
Sk Swraj
Sk Swraj - avatar
0
Yes, after initializing I got .git empty repo. But I have confusion about why that now shows total 28 including .git , while I gave command ls -lart ? Meaning of that command is to show hidden files right? Is it normal to show like total 24 28 ? Or any changes needed in github setting or any other environment?
7th Feb 2024, 2:16 AM
Melita