Mac terminal Javac

Mac  terminal Javac

Open the Terminal‘s vim , then write them:

public class test{

public static void main(String[] args){

System.out.println("test");

}

}

First, to make the .class file, this is java‘s object file.

?  Desktop javac test.java

Then run this java app.

?  Desktop java test test.class

test

时间: 2024-07-30 22:44:06

Mac terminal Javac的相关文章

开启mac terminal 命令/路径自动补全功能

用惯了windows命令行工具的按Tab自动补全路径功能后,在mac terminal上敲命令很不习惯.其实mac terminal也有这个功能. 在命令行输入nano .inputrc 进入.inputrc的编辑界面,输入如下语句: set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete Control+O保存.重启terminal即生效

Save output to a text file from Mac terminal

  Simply with output redirection: system_profiler > file.txt Basically, this will take the output of system_profiler and save it to the file file.txt. There are technically two different output "streams", standard output, and standard error.

[Mac]Terminal交互式输入行编辑

*:first-child { margin-top: 0 !important; } body > *:last-child { margin-bottom: 0 !important; } a { color: #4183C4; } a.absent { color: #cc0000; } a.anchor { display: block; padding-left: 30px; margin-left: -30px; cursor: pointer; position: absolute

恶补mac terminal的命令行知识

一个女孩的前端学习之路,希望可以帮助到别的在编程代码上学习的朋友们. 恶补mac terminal的命令行知识1-对于我来说最重要的几个命令行ls[list] /path : 看看某个路径的内容. cd /path 表示转到跟目录下的path路径中cd path 表示转到当前目录下的path路径中2-清理系统 sudo periodic daily然后回车,输入管理员密码即可.如果把daily换成weekly,则运行的是每周的清理.换成monthly,就是做每月的清理.如果直接输入:sudo p

Mac terminal使用技巧

在Mac系统中几个键位组合可以使Terminal的操作更加灵活方便. 1.将光标移动到行首:ctrl + a 2.将光标移动到行尾:ctrl + e 3.清除屏幕:            ctrl + l 4.搜索以前使用命令:ctrl + r 5.清除当前行:         ctrl + u 6.清除至当前行尾:   ctrl + k 7.单词为单位移动:option + 方向键 8.多tab支持 1)terminal y也是支持多tab的, Cmd+T可以打开一个新的tab 2) cmd

mac terminal 配色

地址:https://github.com/altercation/solarized http://bbs.feng.com/read-htm-tid-10259499.html 要在 Mac OS X 终端里舒服的使用命令行(至少)需要给3个工具配色,terminal.vim 和 ls. 首先下载 Solarized:$ git clone git://github.com/altercation/solarized.gitTerminal/iTerm2Mac OS X 自带的 Termin

mac terminal ssh client shuttle 免输密码

免输入密码登录 不需要iterm和zoc等第三方软件,alias(纯终端)和shuttle(有UI)两种方式使用密码(不需要手动输入)登录目标机器 准备工具 sshpass,shuttle 密码配置文件 密码文件(明文存储,若考虑强安全问题,请绕道)格式:hostname(已在系统hosts文件定义), user, password, ssh_port $ cat /Users/zhang/zhangsan/work/secure vm-001 root 123456 1122 vm-002 r

MAC Terminal 用颜色区分不同类型的文件

Terminal 下不同类型的文件显示不同的颜色Terminal 默认的 shell 是 bash (提示符是 $)在 ~ 先建立一个文件  ~/.bash_profile 加入下面的两行:export CLICOLOR=1export LSCOLORS=gxfxaxdxcxegedabagacad 存盘, 退出Terminal, 重起Terminal.更改LSCOLORS可以有不同的颜色效果.

很好看的Mac Terminal配色

原文:https://noahfrederick.com/log/lion-terminal-theme-peppermint/ 下载地址:https://noahfrederick.com/get/Peppermint.1.2.terminal.zip