zoukankan
html css js c++ java
在Linux系统中,使用useradd命令新建用户后,登录该用户时shell开头为$,不显示用户名和路径,如下:
在~/.bash_profile中加入以下代码,若无该文件可自行创建:
Java代码
vi ~/.bash_profile
#加入
#export PS1=
'[u@h W]$'
大写W代表最后路径,小写w代表详细路径
#保存
使变量生效:
Java代码
source ~/.bash_profile
重新登录
查看全文
相关阅读:
83. Remove Duplicates from Sorted List
35. Search Insert Position
96. Unique Binary Search Trees
94. Binary Tree Inorder Traversal
117. Populating Next Right Pointers in Each Node II
116. Populating Next Right Pointers in Each Node
111. Minimum Depth of Binary Tree
169. Majority Element
171. Excel Sheet Column Number
190. Reverse Bits
原文地址:https://www.cnblogs.com/byteHuang/p/9299198.html
最新文章
114. Flatten Binary Tree to Linked List
242. Valid Anagram
39. Combination Sum
29. Divide Two Integers
22. Generate Parentheses
238. Product of Array Except Self
237. Delete Node in a Linked List
110. Balanced Binary Tree
145. Binary Tree Postorder Traversal
27. Remove Element
热门文章
75. Sort Colors
108. Convert Sorted Array to Binary Search Tree
53. Maximum Subarray
89. Gray Code
74. Search a 2D Matrix
153. Find Minimum in Rotated Sorted Array
62. Unique Paths
21. Merge Two Sorted Lists
235. Lowest Common Ancestor of a Binary Search Tree
70. Climbing Stairs
Copyright © 2011-2022 走看看