When you said type( ls -lrt ), but when i type it on window compiler i did't get any result.
Title
Question
When you said type( ls -lrt ), but when i type it on window compiler i did't get any result.
C-and-Cpp First-C-Program 06-07 min 40-50 sec
Answers:
ls (list directory contents) command works only on Linux based systems. You need a Linux environment to use such commands.
in windows use dir command to display the list of folders in the particular directory
C:\\senthil\dir
C:\cygwin64>dir
Directory of C:\cygwin64
11/28/2021 07:47 PM <DIR> .
11/28/2021 07:47 PM <DIR> ..
12/04/2021 08:27 PM <DIR> bin
11/28/2021 07:06 AM 53,342 Cygwin-Terminal.ico
11/28/2021 07:05 AM 88 Cygwin.bat
11/28/2021 07:06 AM 157,097 Cygwin.ico
11/28/2021 07:05 AM <DIR> dev
11/28/2021 07:48 PM <DIR> etc
11/28/2021 07:06 AM <DIR> home
11/28/2021 07:47 PM <DIR> lib
11/28/2021 07:47 PM <DIR> opt
11/28/2021 07:05 AM <DIR> sbin
11/28/2021 08:13 PM <DIR> tmp
11/28/2021 07:44 PM <DIR> usr
11/28/2021 07:04 AM <DIR> var
3 File(s) 210,527 bytes
12 Dir(s) 51,822,346,240 bytes free
Login to add comment