Command Line part 9

Steven Klavins
2 min readFeb 26, 2020

Week 1 — Command line

Processes are constantly running on your computer, a variety will be running parallel. To monitor these we can use the “ps” command in terminal, use the “ps x” to see all processes running on your computer or “ps x | grep bash” if you just want to see bash processes (processes from within terminal). In windows we can use the “tasklist” and it will do the same thing.

When we need to make a quick change to a program and we don’t have the luxury of an IDE or text editor we can use the “vim” command. Example “vim newFile” upon doing this you’ll have a blank screen and a new file with your name of choice. You could do the following:

“i” to insert text before cursor, “o” to open a new line, “dd” to delete current line, press ESC To get back to the command line and q followed by enter to quit. To save the file Press colon (:) and then w (“w” which stands for “write”). It is important to note to use vim on a Windows system requires addition set up and installation from the vim website. This is the bare basics vim and there is a lot you can do with it, however it is a lot more convenient to use on Unix systems.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Steven Klavins
Steven Klavins

Written by Steven Klavins

Hi, I’m Steven, most call me Steve! I’m a programmer, musician, and artist. This blog contains various tutorials and posts related to software development.

No responses yet

Write a response