I am new to Linux and I want to create an alias to run an application.   Currently, to access it via the terminal I am typing:  cd /usr/local/bin packettracer   Is there any way I can by pass creating an alias just to change directories? I just want to be able to type pt for example into the terminal and it instantly run, rather than typing two separate commands.  Thank you in advance!
I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh
I get this error: dpkg: unrecoverable fatal error, aborting: files list file for package `fonts-tlwg-kinnari' contains empty filename How do I remap certain keys or devices? I'm searching for a way to remap certain keys in ubuntu.  i.e.   I'd like to change PgUp to Home or PgDown to End.  Does a built-in command or a tool exist reassign keys in Ubuntu/GNOME? Translate of an ideal by $a$ coincides with the ideal iff  $a \in I$ How  can I show the following?     Show that, if $a$ and $b$ are elements of a ring $R$ and $I$ is an ideal of $R$, then $$a+I=0+I \iff a \in I$$    I am so interested to know the proof.Thanks and good night all! natbib and hyperref create by default two links to the bibentry in the reference section|chapter of the document:   \begin{filecontents}{\jobname.bib} @book{author08, title = {{A Title}}, publisher = {Alpha}, year = {2008}, author = {Author, A}, address = {London} } @book{buthor90, title = {{B Title}}, publisher = {Bravo}, year = {1990}, editor = {Buthor, B}, address = {New York} } \end{filecontents}  \documentclass{article}  \usepackage{natbib} \usepackage{hyperref} \hypersetup{colorlinks,citecolor=red}  \begin{document}  \noindent citet: \citet{author08}, \citet[see][p. 20]{author08} \\ citep: \citep{author08}, \citep[see][p. 20]{author08}  \bibliographystyle{plainnat} \bibliography{\jobname}  \end{document}     In order to avoid two links to the bibliography (one for the [author] and one for the year [year], respectively), I took  to an older question and added it to my preamble.  \usepackage{etoolbox} \makeatletter  \pretocmd{\NAT@citex}{%   \let\NAT@hyper@\NAT@hyper@citex   \def\NAT@postnote{#2}%   \setcounter{NAT@total@cites}{0}%   \setcounter{NAT@count@cites}{0}%   \forcsvlist{\stepcounter{NAT@total@cites}\@gobble}{#3}}{}{} \newcounter{NAT@total@cites} \newcounter{NAT@count@cites} \def\NAT@postnote{}  % include postnote and \citet closing bracket in hyperlink \def\NAT@hyper@citex#1{%   \stepcounter{NAT@count@cites}%   \hyper@natlinkstart{\@citeb\@extra@b@citeb}#1%   \ifnumequal{\value{NAT@count@cites}}{\value{NAT@total@cites}}     {\ifNAT@swa\else\if*\NAT@postnote*\else%      \NAT@cmt\NAT@postnote\global\def\NAT@postnote{}\fi\fi}{}%   \ifNAT@swa\else\if\relax\NAT@date\relax   \else\NAT@@close\global\let\NAT@nm\@empty\fi\fi% avoid compact citations   \hyper@natlinkend} \renewcommand\hyper@natlinkbreak[2]{#1}  % avoid extraneous postnotes, closing brackets \patchcmd{\NAT@citex}   {\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi    \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}{}{}{} \patchcmd{\NAT@citex}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@close\fi}   {\if\relax\NAT@date\relax\NAT@def@citea\else\NAT@def@citea@space\fi}{}{}  \makeatother     Which gets me almost where I want to be, but leaves me with two issues I would like to be solved:   while \citet includes pre- and postnotes in the link, \citep doesn't. How can \citep be changed to include postnotes? is there a way to color the brackets and commas that are typeset in black in the unmodified first example also in black in the modified second example without removing them from the link? Prevent pdflatex from writing a bunch of files If I create just a basic hello.tex file an compile it using   pdflatex hello.tex   The pdflatex program is creating a plethora of file which is a little annoying. Currently it writes all those files about which I really don't care:  hello.aux, hello.log, hello.nav, hello.out, hello.snm, hello.toc   Is there a way to tell pdflatex to only write hello.pdf if the build is successful ? If not, can I specify the output directory of those files ? Maybe I could just write them in /tmp. Big-O Notation Proof Given the definition of Big-O, prove that $f(n) = n^2 - n$ is $O(n^2)$.  When I use the given definition, I get $n^2 - n \leq n^2 - n^2$ which means that $n^2 -n \leq 0$, which is not true. Is there some step I'm missing? SQL Server 2000 on Windows 10 I need to install SQL Server MSDE 2000 SP4 on Windows 10.  I have other machines that run Windows 7 and 8.1 and SQL Server MSDE 2000 works fine (with merge replication configured too).  Now I testing the same scenario with Windows 10, but setup is closing unexpectedly during installation.  I know that this version is very old, but is there a workaround to install it on Windows 10? remove locked by android device manager message I have played with Android device manager and I have blocked my phone. I have deblocked but everytime my phone enters into standyby it apears me the message "locked by android device manager" and I have to enter the password again.  Do you know how to remove this message? Series involving log $\sum_{n=1}^{\infty} \left( n\log \left(\frac{2n+1}{2n-1}\right)-1\right) = \frac{1-\log 2}{2}$ What should a rational person accept as a miracle? Let p be a prime. Consider the equation $\frac1x+\frac1y=\frac1p$. What are the solutions? Write down the set of distinct solutions and prove your list is complete. $x$ and $y$ are positive integers.  I have rewritten it as $\frac{(x+y)}{xy} = \frac1p$, but I don't understand where to go from here? No "waiting for review" for comment flags Let me explain using screenshot and Free Hand Red Circles and Arrows:        As comment flags are now fully showing in the summary, I would expect the same behavior by showing how many are still active. $A,B,C$ are three $n\times n$ matrices such that $A$ has $n$ distinct eigenvalues, $AB=BA$, and $AC=CA$.   We need to show $BC=CB$.  Let $A$ be diagonalizable with eigenvectors say, $v_1,\dots,v_n$, so there exists $P$ such that $PAP^{-1}=D$. What more I can say from the information? Please help. I read news on the BBC (on its website) this morning. When I was reading the news I noticed the definite article the was missing in a sentence. As per my opinion, the reporter missed the article the. But I also thought that the reporter also had some point as he did not use the article there. So I just wanted to confirm so landed here to get some help on it.     On the website:      It also proclaimed the group's leader, XYZ  (name), as caliph and   "leader for Muslims everywhere".      As per my opinion it should have been:      It also proclaimed the group's leader, XYZ  (name), as the caliph and   "leader for Muslims everywhere".   Source link: There is no smallest rational number greater than 2 I have a problem that I am seriously stuck on. I'm not sure what to do I've seen similar proofs online with the least positive rational number but this is apparently different and I'm not sure why.     Prove the statement “There is no smallest rational number greater than 2” by contradiction. Can we decrypt in this order when the message is encrypted twice? SQL Server default collation vs database with different collation - potential problems? I'm struggling with the design of new database that has to use a different collation (Y Collation) than the SQL Server Instance default collation (X Collation). I'm looking for potential problems.  Temp Tables by default will be created with X Collation so any joins on text data types will fail unless I create temp table with Y collations on columns.  What about SQL Server string functions: REPLACE, SUBSTRING, etc.? Will they always be returned in X collation? What about when I use REPLACE(...) COLLATE Y? Do you see any potential data loss or maybe any different problems? Accessing class members on a NULL pointer Someone gave me a bunch of envelopes of pizza crust yeast, "specially formulated for pizza crust". The packets also say that no rise time or proofing is needed, and that it's "NOT recommended for bread baking." The ingredients are yeast, enzymes, sorbitan monostearate, l-cysteine, and ascorbic acid. It does provide a recipe for pizza crust, with just mixing and a bit of kneading.   What has actually been done to this yeast to make it work like this? (What are those enzymes?) And is there any way I can use it for other things, or is it really only good for things like pizza crust? Proof that if continuous function on $[0, 2]$ and $f(0) = f(2)$, then for some $x: f(x) = f(x - 1)$