FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I believe it is called the Command Line. It is this bar I type in the name of an application and it opens it.
It's probably bash, the Bourne Again Shell, strictly speaking. Different shells have slightly different features and ways of configuration, so it's important.
Code:
echo $SHELL
will tell you which shell you are in fact using.
Quote:
Originally posted by Cyberian 2. How do I add custom names? i.e. 'ff' will launch Firefox. Cuts my time in typing.
Code:
alias ff=firefox
or something like that. "man alias" will bring up the bash manual; within this manual, you can search for the description of alias typing "/alias".
One simple and usefull thing for the 2. question. If you set the history right. Fade or something. There are three ways of history. Anyway when history is set the right way. It works like a linux command line. Once the command is long enough to be unique, then this is the command, that will be run.
Like if you run firefox and it's your only program beginning with f, then when you will press f it will automatically continue your command with faded letters irefox. In that moment press enter and you will be able to run firefox with only one character. But if you want to make symbolic names for your commands, refer to the command ln, and be sure to put the symbolic links within your $PATH variable paths. You can see the PATH variable by typing echo $PATH. Put your symbolic links in one of those directories. Or create one of your own, like /home/me/symbols/ and put your symbolic links in there, and put that directory in your PATH variable. But remember, that any existing commands should not be replaced with your symbolic commands. If you have any questions, post them here.
Distribution: Mint 18.1 Cinnamon, Ubuntu 16.04 LTS
Posts: 18
Rep:
To 'erase' your history:
From a shell prompt/command prompt, type:
rm ~/.history This removes the history file - you can also try mv ~/.history ~/.history.backup if you want to preserve your old stuff.
touch ~/.history Touch creates a new empty file.
If I remember right, default file permissions are 775(?) - that is, rwx (the 7) for you - the owner, rwx for the group , which is normally the same as the owner, and r-x for others. I'm on my work PC right now - WinXP, so you'll have to try and see...
And pardon me if you already know this, but the tilde <~> is a shorcut for the user's home directory, normally /home/userid. Your history file is located in the root/base of your home directory - /home/userid/.history, as is your .profile, as someone pointed out earlier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.