5

I want to add this key binding in the suitable conf file :

Control-t: "top -Ss \C-m"

Which means : Bind Ctrl+T keys to top -Ss command line .


i enter on terminal sudo ls ~/.inputrc to check existence of this conf file . i get this error:

 No such file or directory

Where can i put this binding. What is the target file with the new FS hierarchy of Ubuntu14.04 .

4
  • 1
    You can create the file and add it there. Jul 1, 2014 at 11:20
  • 1
    Not "can". You need to create that file and add it there ;)
    – Rinzwind
    Jul 1, 2014 at 11:21
  • And what is the recommended permission for that file : r ?w ?x ? sticky bit ?..so on Jul 1, 2014 at 11:23
  • 2
    On Ubuntu 14.04, i had to drop the = chmod --reference ~/.bashrc ~/.inputrc
    – zerweck
    Jul 9, 2015 at 18:09

1 Answer 1

12

Just do this to create it with the same access rights as .bashrc:

touch ~/.inputrc
chmod --reference=~/.bashrc ~/.inputrc

NOTE :

--reference : it inherits permissions of specified file .

1
  • 2
    Oh , great. i like this inheritance of permission using --reference option . thx Jul 1, 2014 at 11:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .