LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2018, 09:31 AM   #1
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Rep: Reputation: Disabled
Smile Practice moving around in the filesystem and editing using Emacs


Hi guys!
First post here

Does anyone know of any pre-built practice "obstacle courses" for me to practice moving around the filesystem and editing using a text editor?

I'm imagining a package i could open, which already include directories and files in them already which I could practice on.

I just started reading an oreilly BASH book and I'd like to practice the material I'm learning in the terminal.

Thanks in advance!

Last edited by brushspin; 03-07-2018 at 09:32 AM. Reason: Spelling
 
Old 03-07-2018, 10:11 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
You may want to try Slackware where most things are configured via text files in /etc
 
1 members found this post helpful.
Old 03-07-2018, 10:19 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,997
Blog Entries: 13

Rep: Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445
Quote:
Originally Posted by brushspin View Post
Hi guys!
First post here

Does anyone know of any pre-built practice "obstacle courses" for me to practice moving around the filesystem and editing using a text editor?

I'm imagining a package i could open, which already include directories and files in them already which I could practice on.

I just started reading an oreilly BASH book and I'd like to practice the material I'm learning in the terminal.

Thanks in advance!
I'm not understanding what you're looking for here.

You're reading a bash book and wish to practice things.

Your .bashrc is a script file that you can edit using a text editor. Suggest you make a copy such as test_bashrc and then edit that to play around.

Whichever text editor you use, you can look at nearly all Linux files, unless they are binary executable files.

You use the cd command to move around directories.

If you happen to use a desktop GUI, then you use the File Manager to move around the file system. You can right click on files shown to get a menu of options, one of which would be to Open or Edit the files.

There is no specific obstacle course, or initiation path one follows. You have the O'Reilly guide you are reading and likely this shows real Linux examples. Suggest you follow some of them, with the caution that you make secondary copies of files you view and edit and play with the copies so as to not mess up your system until you learn about it some more.
 
1 members found this post helpful.
Old 03-07-2018, 10:35 AM   #4
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
I'm not understanding what you're looking for here.

You're reading a bash book and wish to practice things.

Your .bashrc is a script file that you can edit using a text editor. Suggest you make a copy such as test_bashrc and then edit that to play around.

Whichever text editor you use, you can look at nearly all Linux files, unless they are binary executable files.

You use the cd command to move around directories.

If you happen to use a desktop GUI, then you use the File Manager to move around the file system. You can right click on files shown to get a menu of options, one of which would be to Open or Edit the files.

There is no specific obstacle course, or initiation path one follows. You have the O'Reilly guide you are reading and likely this shows real Linux examples. Suggest you follow some of them, with the caution that you make secondary copies of files you view and edit and play with the copies so as to not mess up your system until you learn about it some more.

Since I just installed my OS and learned about moving within the system I would like to practice moving around the file system and its files. I want to move one file, or groups of files from one directory to another practice piping, I/O redirecting, use filtering utilities like "grep", setting jobs to run in the background, setting permissions on these files (etc). I want to know the foundation of file management before moving on to shell programming.

I don't have any files to play around with and was hoping to find someone who might have "dummy" text files in bulk that I could use to move around the system.

Sorry if that was unclear!

Last edited by brushspin; 03-07-2018 at 10:37 AM.
 
Old 03-07-2018, 10:44 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
For grep practice, I would use it on log files in /var/log/ and try to filter what you want
Or at end of pipe with output from commands like ps, netstat etc
You could also search files in a directory that contain selected word
 
1 members found this post helpful.
Old 03-07-2018, 11:07 AM   #6
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
For grep practice, I would use it on log files in /var/log/ and try to filter what you want
Or at end of pipe with output from commands like ps, netstat etc
You could also search files in a directory that contain selected word
Thanks mate what you just suggested are the types of pointers I'm looking for!

Again sorry my post sounded weird when I mentioned obstacle courses, looking back it sounds like non-sense to me.
 
Old 03-07-2018, 12:08 PM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,997
Blog Entries: 13

Rep: Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445Reputation: 3445
To get a bunch of shell script examples you can use a browser or the wget command to get from this link: https://github.com/epety/100-shell-s...ive/master.zip or use the git clone command to get from https://github.com/epety/100-shell-script-examples.git.

That will get you 100 bash programming examples.

Another group is here, which seems a bit more organized, https://github.com/ruanyf/simple-bas...ive/master.zip
 
Old 03-08-2018, 10:32 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,655

Rep: Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484
For practising like that, I create a dev sub-dir and then in there start creating dirs, files etc and eg copying in logs to play with.
You should be pretty safe, so long as you stick to that area (obviously NOT as root )
 
Old 03-08-2018, 11:24 PM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Emacs has a tutorial built in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practice way of moving an Ext3 journal to another drive. smells_of_elderberries Linux - Newbie 4 05-25-2013 06:14 PM
LXer: Emacs editing, Pt.5: Shape your Emacs view LXer Syndicated Linux News 0 08-09-2007 07:46 AM
emacs editing rhtml ? lilili Programming 1 01-27-2007 09:37 PM
Editing Emacs colors? ljr2600 Mandriva 4 09-18-2004 06:50 AM
best practice for bldg & moving apps cparliament Linux - General 1 06-27-2002 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration