Commands - xthouxand/itc-136 GitHub Wiki

In the terminal type --

1.) Whoami and then type PS. -PS shows everything that is running in your session

2.) PS AUX shows all processes running on the computer if you wont to scroll through it use: "ps aux | more" -- the pipe command lets you tie two programs together. Press the space bar to scroll.

At the beginning of "PS AUX | MORE" command you will notice at the top -- PID: is the process ID %CPU: much cpu is assigned %MEM: how much memory is assigned TTY: consoles is listed Start: Start time Command: The command used for it

3.) Take firefox PID and kill it by: "kill 2127" (MY PID # IS 2127)

4.) The command "TOP", lists the resources using the most cpu and memory. It tells how many users are running, how many task, how many sleeping, how many stopped and many more information.

5.) The command (List of open files) -- "lsof | more" , it allows you to see that any given process is doing, everything that needs to run and everything its outputting to.

6.) the command qq, gets you back to typing a command.

7.) The command "man more" is for the manual (look at this to become familiar with commands)

8.) you can search by using "/_____process" (forward slash)

9.) The command "pstree | less" , list all processes running in a tree configuration

---- BREAK TIME ----

10.) Launching a process* type the command, "whereis libreoffice">>press enter>> copy and paste "/usr/bin/libreoffice&" and libre office will open.

11.) ls / (gives you all the files listed in root)

12.) ls -1 (shows all the permissions on all the files and gives notification time)

NOTE: "~" means Go back to the home directory