Skip to main content

Intro to Linux

Posted in

Tuesday September 11, 2012

Presentation: Matt Richard

 

Gnome 3

  • shut down computer:
    • hold alt and hover over your name in the upper right corner
    • or type ctrl alt del
  • Activities (upper left corner)
    • favorites menu on left
    • Windows
      • displays all open windows
    • Applications
      • all installed applications
      • filter menu on right
    • Workspaces
      • store your windows in different workspaces
      • ctrl alt up/down-arrow moves between workspaces
  • file system
    • Devices
      • Windows partition
    • Bookmarks
      • F drive (SDSMT)
      • H drive (SDSMT)
      • add shortcuts: ctrl d in whatever directory you want to add to Bookmarks
    • Computer
      • File System (Windows equiv: C drive)
      • home (all users stored here)
  • Advanced Settings
    • Have file manager handle desktop
      • allows for storing things on desktop and right-clicking on desktop
    • Arrangement of buttons on the titelbar
      • options include displaying Minimize/Maximize buttons one windows
  • revert to something more like Gnome 2
    • System Settings -> Details -> Graphics
    • menus in top left corner
    • windows shown on bottom
    • pin application to top bar
      • drag from application menu to top bar

 

Terminal

  • terminal window (from Applications)
  • terminal workspace (ctrl alt F[1-5])
  • commands

ls

displays contents of current directory

ls -l

lists contents of current directory with more detail

ls -a

lists contents of current directory, including hidden files/folders

 

man [command]

manual

example: man ls

would display manual for ls command

 

--help

like a condensed manual

example: ls --help

 

cd [directory name]

change directory

cd ..

moves up a level

cd ~

return to home directory

 

pwd

display current directory

 

mv [file name] [destination or new file name]

move or rename file

 

rmdir [directory name]

removes a folder

NOTE: this command does not send the folder to the trash, it is simply gone

 

sudo [command]

execute the command as root

 

yum

package manager

use this to get new applications

sudo yum search [application name to search for]

sudo yum install [application name]

 

cat [filename]

displays contents of file in terminal

 

Compiling Code

  • in terminal:

g++ [filename].cpp

  • creates a.out file
  • execute a.out if a.out is in current directory:

./a.out

  • execute a.out if a.out is not in current directory:

[filepath]/a.out

 

Linux Alternatives for Common Windows Programs

Windows

Linux

Microsoft Office

Libre Office

  Word

  Writer

  Excel

  Coder

  PowerPoint

  Impress

Journal

Xournal

Notepad

gEdit

iTunes/Windows Media Player

Amarok

Photoshop

GIMP

Visual Studio

Eclipse