Hi all,
Please find below the commands used in the video --
15. mv ---- To rename a file or directory ---- mv file1 file2 (enter) - e.g. mv test.txt test.html (enter)
15a. mv file dir --- To move a file into another directory --------------------------- mv file1 dir1/dir2/file2 (enter)
17. head ----------- print the first 10 lines of the file ---------------------------- head fileName (enter)
17a. head 1 ------- print the first line of the file --------------------------------- head -1 fileName (enter)
17b. head 50 ------ print the first 50 lines of the file ----------------------------- head -50 fileName (enter)
18. tail ----------- print the last 10 lines of the file ----------------------------- tail fileName (enter)
18a. tail 1 ------- print the last line of the file ---------------------------------- tail -1 fileName (enter)
18b. tail 50 ------ print the last 50 lines of the file ------------------------------ tail -50 fileName (enter)
22. grep -------------- return lines with the text written ------------------------------ grep text fileName (enter)
22a. grep n ---------- return lines with the text written with line numbers ------------- grep -n text fileName (enter)
22b. grep i ---------- return lines with the text written with (case insensitive) ------- grep -i text fileName (enter)
22c. grep -color ----- return lines with the text written with color -------------------- grep --color text fileName (enter)
22d. grep v ---------- return lines not contain the text written ------------------------ grep -v text fileName (enter)
23. which ---------- shows you the path of a command ------------------------------------ which commandName (enter)
24. chmod ---------- chmod adds permissions from files or directories -------- chmod entity+permissiontype ----------
chmod u+r fileName (enter) ---------------- make executable for you
chmod g+rxw fileName (enter) -------------- add read write execute permissions for the group
u - user
g - group
o - other/world
a- all
r - read
w - write
x - execute
24a. chmod ---------- chmod removes permissions from files or directories -------- chmod entity-permissiontype
chmod go-wx fileName (enter) ---------------- remove write execute permissions for the group and for everyone else (excluding you, the user)
chmod a-rwx fileName (enter) ---------------- remove all permissions for you, the group, and the rest of the world
chmod 000 fileName (enter) ------------------ revoke all permissions (---------)
chmod 777 fileName (enter) ------------------ grant all permissions (rwxrwxrwx)
chmod 755 fileName (enter) ------------------ reserve write access for the user, but grant all other permissions (rwxr-xr-x)
----------------------------------------------------------------------------------------------
For More Information:
Please write us at: [email protected]
====== If you would like to donate and give support to our Channel, write a mail to us.
Thanks For giving Your Valuable time.
Regards,
ComputeOnCloud Team