LinuxQuestions.org
Visit Jeremy's Blog.
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 06-14-2019, 04:32 PM   #1
CycleRob
LQ Newbie
 
Registered: Aug 2017
Location: Wooded part of Gainesville, GA, USA
Distribution: LMCinn 18.3 on a 28" HomeBuiltDesktop & LM xfce 18.3 on a 17" HP Laptop + old Dell Pentium4 Desktop.
Posts: 3

Rep: Reputation: Disabled
Mouse left click text highlight no longer copies it


Mint Cinnamon 18.3. It used to work, that in addition to right clicking the highlighted text and using <Ctrl-C>, a second way to copy highlighted text was to just left-click and scan it. Pretty cool that it gave 2 usable ways <Ctrl-V> or mouse right-Click to "Paste" 2 stored selections. I do not know what caused it to stop functioning, maybe during an Update Manager Update. If this is a known problem, how do I fix it?


Also, (less important), in Terminal I use up arrow history twice before shutdown for UpTime and fstrim. How do I delete (or selectively delete) the (lengthy!) different undesireable history displayed with a keyboard's UpArrow? Terminal Help was NO help.

Thanks in advance.

Last edited by CycleRob; 06-14-2019 at 05:29 PM.
 
Old 06-14-2019, 05:23 PM   #2
Mechanikx
Member
 
Registered: Jul 2018
Location: Canada
Distribution: Slackware
Posts: 143

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by CycleRob View Post
Also, In a Terminal how do I delete (or selectively delete) the (lengthy!) history displayed with a keyboard's UpArrow? Terminal Help was NO help.

Thanks in advance.
Honestly I'm not aware of a terminal that keeps a history of commands you've executed. That's usually the job of the shell. If you're using bash, you can check by entering:

Quote:
echo $0
or

Quote:
echo $SHELL
If you're using bash you can enter:

Quote:
history -c
then

Quote:
history -w
or just:

Quote:
history -c && history -w
And you'll be good to go.

EDIT:

This will wipe out your entire history.

Last edited by Mechanikx; 06-14-2019 at 05:26 PM. Reason: Added info.
 
Old 06-14-2019, 08:44 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,858
Blog Entries: 1

Rep: Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819
History tends to be stored in $HOME/.bash_history, which you could edit I suppose. Although edits wouldn't take till the next su / login. .bash_history isn't saved in an xterm until you exit.

As far as cut and paste, X has it's own buffer, you can highlight text in a terminal and the middle mouse button will paste it. The ^V doesn't in most cases, unless you right mouse something and say copy/cut or whatever. Otherwise the usual ^X ^C ^V things apply that also apply in windows.
 
Old 06-14-2019, 08:52 PM   #4
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,056

Rep: Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069Reputation: 1069
Quote:
Originally Posted by CycleRob View Post
Also, (less important), in Terminal I use up arrow history twice before shutdown for UpTime and fstrim. How do I delete (or selectively delete) the (lengthy!) different undesireable history displayed with a keyboard's UpArrow? Terminal Help was NO help.
Presuming bash -- you can re-execute commands from history using !command, which can be shortend to a minimum match.
So, if your history contains
Code:
uptime
fstrim
and there are not intervening commands starting with u or f, you could type
Code:
!u
!f
to run those last two commands.

I would probably put them in a script named something like zout.sh and just use
Code:
!z
when I wanted to run them.
Name the script so that a one or two-character string will match uniquely.
 
Old 06-15-2019, 04:31 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,858
Blog Entries: 1

Rep: Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819
I was once in a gnome environment on ubuntu, and Cntrl+Shift+V would paste. But that's not "common" in my experience. And that was nearly a decade ago.
 
  


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
[SOLVED] Left Bracket "(" No Longer Available via LEFT Shift Key netfoot Linux - Laptop and Netbook 12 03-16-2019 11:57 PM
Computer detecting right-click as left-click, left-click as left-click and middle with 2 fingers pressed as right-click Festerdam Linux - Newbie 5 06-19-2017 05:41 PM
How to map middle-click on mouse to left-click. sdfi Debian 1 08-26-2012 05:31 PM
left click on kubuntu desktop (on laptop) brings up middle click menu =S darksmiley Ubuntu 2 06-14-2008 05:37 PM

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

All times are GMT -5. The time now is 01:05 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