Page 27 - RHEL8 BOOK
P. 27
BASIC COMMANDS – I
1. To check the Present working directory.
[root@Server ~] # pwd
2. To see the list of files and folders
[root@Server ~]# ls
3. To see list of Files and Folder along with Permission
[root@Server ~]# ls -l
[root@Server ~]# ll
4. To see list of files/folders including hidden also
[root@Server ~]# ls –a
5. To see a File Starting from letter D*
[root@Server ~]# ls D*
6. To see the list of file starting from 'i' along with attribute
[root@Server ~]# ls -l i*
7. To see the extension file '.log' file
[root@Server ~]# ls *.log
8. To see the six character files/folders only
[root@Server ~]# ll ??????
or
[root@Server ~]# ls –d ??????
9. To see the a, b and c character files only
[root@Server ~]# ls [abc]*
10. To see the list of files between a to m characters
[root@Server ~]# ls [a-m]*
11. To See the list of files except between a to m character.
[root@Server ~]# ls -d [!a-m]*
12. To clear the screen
[root@Server ~]# clear
Or
ctrl+l
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
27