If you want to list the content of a directory you can use command ls.
owi@laptop:~$ ls
Command ls show only the names of files which are in the working directory. For more information use -l .
owi@laptop:~$ ls -l
Ls –l lists files in 'long format'. It shows a lot of information e.g. who has the right to access, who owns the file, the size of the file in bytes and the time of the last modification
Ls –a shows you all files, even files that are hidden (these files begin with a dot.)
owi@laptop:~$ ls -a
You can merge the flags for example:
owi@laptop:~$ ls -la
You can see all files in a chosen directory (hidden too) and all the information about them.
If you want to list the content of a directory whose name begins with ,for example, with” p” you can use p*. Symbol “*” means an unlimited sequence of signs. Command ls p* lists the content of all directories whose name begins with “p”.
owi@laptop:~$ ls ./m*
There will be a content of all directories whose name begins with” m “in the working directory.
Symbol “*” means one sign.
owi@laptop:~$ ls ./?atematyka
There will be a content of all directories whose names begin with some sign and ends with “atematyka”.
If you want to copy a directory with content you should use command cp –r and additionally use -r. Then you must give a pathname to the directory and, after a space ,a pathname to the place where the directory is supposed to be copied .