第一步将alias ll='ls -l'添加到/etc/profile # head /etc/profile# /etc/profilealias ll='ls -l'# System wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrc # It's NOT a good idea to change this file unless you know w
今天使用linux解压的时候遇到了不能解压的问题,然后就看了一些文档,写一个解决方案 Linux version 3.10.0-957.10.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Mar 18 15:06:45 UTC 2019 首先查看下自己系统: $ cat /proc/version Linux v
/bin/bash: jar: command not found 解决办法: cd /usr/bin 必须先进入/usr/bin,下同 sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar 我的jdk是安装在/usr/lib/jvm/jdk1.6.0_30/目录下的 如果提示javah:commond not found,于是照葫芦画瓢,输入命令 cd /usr/bin ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/java