ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

Linux命令笔记

2022-01-10 01:03:21  阅读:200  来源: 互联网

标签:name pem -- rsa 笔记 命令 pub key Linux


Find命令:

find ../ -name dblook.log
find . ! \( -user assentis -o -group assentis \) -exec ls -l {} \;

参考:

鳥哥的 Linux 私房菜 -- 第六章、Linux 檔案與目錄管理 (vbird.org)

find(1) - Linux manual page (man7.org)

 

chown (Change Own)

chown --changes --recursive assentis:assentis .

 

CommandDescriptionRelated Link

uname -aLinux Kernel Version

lsb_release -aDistribution Information

whodisplay who is on the system

wisplays information about the users currently on the machinehttps://askubuntu.com/questions/974718/how-do-i-get-the-list-of-the-active-login-sessions

analytical options as --until, --since

 

apt list --installed

printenvPrint all environment variables

envRun command with a temporary environment variable

~/.bashrcWe can edit this file to define the environment variable and command alias we want to have after system restart

 

/etc/passwdShow all users

sh

Switch to another user

chvt

Switch to another terminal (tty teletypewriter)

sudo chvt 1-6

https://blog.csdn.net/qq_41545647/article/details/108748103

tty

Print the file name of the terminal connected to standard input.

ln

Make a link

 

ps

report a snapshot of the current processes.

ps -ef, ps axu

 

Ctrl+z将工作放入后台

Jobs查看后台工作Jobs -l

fgForeground 恢复后台工作

 

ssh-keygen

OpenSSH authentication key utilityssh-keygen -b 2048 -t rsa

Convert generated pub format to pem format:

From <https://man7.org/linux/man-pages/man1/ssh-keygen.1.html>

ssh-keygen -e -f ado_service_principal2.pub

 

Convert RSA Private Key to OpenSSH

ssh-keygen -p -N "" -f key_file.key

Generate a public key based on private key

ssh-keygen -y -f key_file.pub

 

openssl

# Convert generated pub format to pem format:
openssl rsa -in id_rsa -pubout -out id_rsa.pub.pem

# Generated Certificate:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

# Decrypt Private Key of the certificate:
openssl rsa -in key.pem  -out key_decrepted.pem

 

New-SelfSignedCertificate

PowerShell command to generate a new self-signed web certificate

New-SelfSignedCertificate -DnsName $env:COMPUTERNAME -CertStoreLocation Cert:\LocalMachine\My
Get-ChildItem -Path Cert:\LocalMachine\My

az keyvault

az keyvault secret set --vault-name 'ContosoKeyVault' --name 'SQLPassword' --value 'Pa$$w0rd'
az keyvault secret show --vault-name 'hejing195' --name 'tf-test-alicloud-access-key'
az loginaz login --service-principal -u <app-id> -p <password-or-cert> --tenant <tenant>

 

标签:name,pem,--,rsa,笔记,命令,pub,key,Linux
来源: https://www.cnblogs.com/hejing195/p/15758862.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有