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. – saiarcot895 Jul 1 '14 at 11:20
  • 1
    Not "can". You need to create that file and add it there ;) – Rinzwind Jul 1 '14 at 11:21
  • And what is the recommended permission for that file : r ?w ?x ? sticky bit ?..so on – Abdennour TOUMI Jul 1 '14 at 11:23
  • 2
    On Ubuntu 14.04, i had to drop the = chmod --reference ~/.bashrc ~/.inputrc – zerweck Jul 9 '15 at 18:09
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 – Abdennour TOUMI Jul 1 '14 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.