Basic linux command 1. useradd 解释:添加新用户,在/etc/password文件中添加一行记录。参数:-g 用于添加账户时指定该账户的私有组,如果不指定-g参数,useradd命令会自动创建与该用户同名的组名作为该账户的私有组-G 用于添加附属组-D 用于显示或设置useradd命令所使用的默认值-d 指定用户主目录,如果目
rpm -ivh xxx.rpm --nodeps --force tar -jxvf linux-2.6.20.tar.bz2 chmod -x executive set 显示当前shell的变量,包括当前用户的变量 env 显示当前用户的变量 export 显示当前导出成用户变量的shell变量 nautilus --browser 打开文件浏览器 ifconfig eth0 up 启用网卡 netstat -utln 显示监听端口 kudzu --...
若出现“can't create transaction lock on var lib rpm __db.000” 错误,是因为权限不够。su到root后再执行安装。 4)alias命令:alias cmd='actual command'. e.g. alias vim='vi' 5) tar命令: 压缩:tar -cvf source dest 解压: tar -xvf **.tar.gz 查看:tar -tvf **.tar.gz...
This tutorial explains the essential Linux commands through examples. Learning these commands helps you perform file editing, listing, and managing tasks effectively on the Linux command prompt. These are basic system administration commands. These are available on all Linux flavors. You can use these...
Very closely related to the pwd command is the cd command. Changing directories is a frequent activity on a Linux system. As stated before, when you first log in, you're placed into your home directory. Every user on a Linux system has a home directory. Regular user accounts have ...
11 Command-Line Editing 12 Text Editors 13 Getting Online Help manual pages Others 14 Shell Input and Output 15 Understanding Error Message 16 Listing and Manipulating Processes 17 File Modes and Permissions Symbolic Links 18 Archiving and Compressing Files 19 Linux Directory Hierarchy Essentials The ...
See a list of the Linux distributions installed on your Windows machine, including the state (whether the distribution is running or stopped) and the version of WSL running the distribution (WSL 1 or WSL 2).Comparing WSL 1 and WSL 2. This command can also be entered as:wsl -l -v. Add...
See a list of the Linux distributions installed on your Windows machine, including the state (whether the distribution is running or stopped) and the version of WSL running the distribution (WSL 1 or WSL 2).Comparing WSL 1 and WSL 2. This command can also be entered as:wsl -l -v. Add...
The ‘upgrade‘ command is used to upgrade all the currently installed software packages on the system. Under any circumstances currently installed packages are not removed or packages which are not already installed neither retrieved and installed to satisfy upgrade dependencies. ...
Chapter 3. Basic bash Shell Commands IN THIS CHAPTER Checking out the bash shell Reading the manual Cruising through the filesystem Handling files and directories Viewing file contents The default … - Selection from Linux® Command Line and Shell Scr