task

linux adventures

command line 101

[previously]

  1. [00:00] NEW task IN - overview
    1. x] # 7208 - CREATE-article# #  - command line 101

 [current]

  1. [00:00] NEW task -

[next]

  1. [00:00]  NEW task
    1. ] FOUND - https://cmdchallenge.com/s/#/simple_sort
  2. [00:00] NEW task
    1. ] ALSO - https://www.reddit.com/r/linux/comments/mi80x/give_me_that_one_command_you_wish_you_knew_years/ 
    2. ] https://news.ycombinator.com/item?id=3257393 

[REFERENCE]

  1. ] # 5151 - CREATE-article # # - adventures in the land of linux - overview
  2. http://community.linuxmint.com/tutorial/view/778 - top 15 commands everyone should know

 

 

 


command line 101 (aka sh, bash, cmd, terminal)

  1. [00:00] {navigation}
    1. ] cd
    2. ] ls
  2. [00:00] {files + directories}
    1. ] cp - copy files or directories
    2. ] mv - move files or directories
    3. ] mkdir - create directories
    4. ] rmdir - delete directories
    5. ] touch - used to create files
    6. ] rm - deletes files 
    7. ] tar - create archives
    8. ] pwd - path working directory
    9. ] grep
    10. ] tail
    11. *] SRC = 1
  3. [00:00] EXAMPLE - use ">" to save program output to file
    1. ] sensors > {path}/temperatures.txt
  4. [00:00] EXAMPLE use ">>" to append program output to a file 
    1. ] sensors >> {path}/temperatures.txt
  5. [LIST]
    1. ] {navigation} -
    2. ] bash - a better shell program
    3. ] cron - task scheduler
    4. ] grep - search files for 'words'  
      1. https://www.howtoforge.com/tutorial/linux-grep-command/
    5. ] man - documentation of programs
    6. ] sudo -

  1. ] https://cmdchallenge.com - 
    1. ] hello_world - echo "hello world!" 
    2. ] get_current_working_directory = pwd
    3. ] count_files =  /var/count_files/ | 
      1. *note = case sensitive, note=include preceeding and trailing / slashes in path
      2. http://stackoverflow.com/questions/20895290/count-number-of-files-within-a-directory-in-linux-not-using-wc
    4. ] list_files - ls
    5. ] print_file = cat {filename}
    6. ] print_file_portion = tail {filename} -n5 (print the last 5 lines of the file)
    7. ] grep 'GET' in access.log - find text 'GET" in file, *case sensitive
    8. ] grep -r 'string' /path/ - find all files in directory that contain text
  2. ] https://explainshell.com - 
  3. ] more cmd help
    1. ] {cmd} --help OR -h to get help on a command
    2. ] https://www.howtogeek.com/108890/how-to-get-help-with-a-command-from-the-linux-terminal-8-tricks-for-beginners-pros-alike/

 

 

 

Details Photos Edit more

Details

ID: 7208

NAME: PROJECT-linux-adventures-101-command-line

DESCRIPTION: ] using linux 101 - entry level usage of the Linux operating system through the eyes of a long time windows user - command line (aka) terminal

START DATE TIME: 2015-05-17 08:00:00

EST DURATION: 01:00:00

END DATE TIME: 2015-05-17 09:00:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities