So this command prints all lines from result of ls -lrt,which starts with "l" and all symolic link's lines start with "l", hence the result.
8. How to see content of current directory
This will not give details about Files or directories.
9. How to see content of current directory with details such as
- the exact size of the file
- who owns the file
- who has the right to look at it
- when it was last modified.
10. How to see all files including the ones whose filenames begin in a dot
This however does not give details as mentioned in point 9.
11. How to see List of all background process
12. How to bring a background process to foreground
13. How to kill a process
14. How to see current date in Unix
15. How to see History of commands executed
Using only "history" will give you all the commands executed in current session.
If you want to see specific type of command, use grep along with history as below :
For example ,if you have executed command to create directory multiple times, you can execute history command as below. It will list mkdir command all the times you have executed previously in current session.
history | grep mk
16. How to clear the console in Unix
17. How to check ,how much space is left on the current drive in Unix
18. How to see which process is taking how much time in Unix
Press shift + O to get all options by which you can sort.For example ,to sort by PID,press 'a' and then press any key.It will sort all the processes by PID.
19. How to copy File from one host to another in Unix
19.1 When you are sending files from current machine to remote machine
scp <current machine path to file,which we want to send to remote machine> user@remote machine:/remote path
Example : scp /var/log/was/abc.txt GA99@test.com:/var/log/remoteDirectory
19.2When you want to retrieve file(s) from remote machine
scp user@remote machine:/remote path to file <current machine path where we want to download the file>