What are essential Linux commands? I know sudo and pwd.
What are essential Linux commands? I know sudo and pwd
emerge
I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.
info coreutils
The ones that are essential for whatever tasks you normally do...
Learn basic folder navigation like cd and ls, I guess. Not really essential when we have GUI file explorers though.
You just need three things to be self-sufficient:
- command line autocompletion. E.g. press 'a', then hit TAB twice
- --help. E.g. `ls --help`
- man . E.g. `man ls`
You can discover everything else by yourself with the above.
To give you a head start: ls, cd, echo, cat, touch, mkdir, rmdir, rm. IO redirection in shell is also very useful, e.g. `echo shit ass > muhfile.txt`
Halt
man
Those are gnu commands, senpai. He asked for linux commands.
weak b8 m8
should be enough for now
grep, less, cat, head, tail, tee, awk, df, du, ls, dd. mount, umount
apt update && apt upgrade
rm -rf /
>Lsblk
Lists drives
>Co
Copy
>Mv
Move, and rename if no path is specified
>Udisksctl
Allows you to mount/unmount disks, as well as other handy things
>Pushd
Move to a directory, then move back to original directory with popd
Touch
Make or update file
echo 'op is a fagg0t'
sudo rm -rf --no-preserve-root
sudo dd if=/dev/urandom of=/dev/sda
The ones i use pretty often:
sudo
cd
ls
cat
mkdir
mv
rm -r
cp -r
htop (you have to install it)
killall
[spoiler]pulseaudio -k && pulseaudio[/spoiler]
Less used but still nice to use
alias
mount // especially ISO mounting keys
history
ping
>info coreutils
thanks
>>Co
>Copy
cd
What are the shortcuts for info pages?
This is essentially spam, i wish people like this were banned
cd code
cd..
pwd
cd..
cd ..
cd code
cd ..
cls
can't work with a dirty screen
Welcome on Sup Forums
>not kode
>rmdir
That's a thing? I've always been using rm -r.
Just press CTRL+L
Don't forget pwd
sure
tho when I'm not too lazy, I like muh principle of least power
I forgot man and ln -s
The rest were just more-than-usually used things in a quick browse of my command history. There was no pwd actually.
sudo rm -rf --no-preserve-root
kill -9
this
also
sudo apt-get install gentoo -y
This, and grep
Tab completion, lsblk -a, cfdisk, vmstat.
It's education senpai.
setenforce0
the only command you'll need to manage a system with SElinux.
whatis $(compgen -c) | less
Is there a command to search a file in all folders? Or should I just usr fsearch?
man find
28696
Spam is free speech
locate
cat /dev/urandom
For that real hackerman cred
sudo pwd
lshw
cat /dev/urandom | hexdump -C | grep '12 34'
thanks for the neat tip. Been using "clear" all this time
> cat |
hexdump -C /dev/urandom | grep '13 37'
Inb4:
sudo rm -rf /
You don't need more user kun
dd if=/dev/zero of=/dev/sda bs=1M
man bash
tail -f /dev/log
apropos is arguably more helpful than --help as the latter is kind of redundant with man/info.
>preserving root
fgt
ls /bin /usr/bin
You're welcome
Doesn't work on my GNU senpai.
ls `tr : ' '
>co
>bash: co: command not found
>Linux comnands
>Linux
You have a lot to learn
underrated post
which
who
alias la="shred -vfz /dev/sda"
Seriously, the most important command you can learn is gdb.
Knowing how to use a debugger makes you invaluable when you are the one person on a team who can tell what happened from a core dump.
He's probably a phone poster who was auto corrected
*linux
man
ps
aux
top
mg
vi
awk
grep
ssh
which
mount
find
dc
dd
ls
sl
sed
cat
rm
mv
cp
kill
Pacstrap /mnt base
Perfection.
what the fuck is a "linux command"
shutdown now
What's the command line equivalent of deletesys32?
What's a command that'll totally fuck my shit up beyond any hope of salvation save re-installation? Something only a bored retard would type in.
This makes 0 sense at all. You cant sudo dd or anything once you do sudo rm -rf --no-preserve-root /
# rm -rf --no-preserve-root /
If you are running a system with EFI, and have systemd installed on your distro, then the following:
rm -rf /sys/firmware/efi/efivars/
Systemd will happily wipe your bios for you. Have fun finding a way to reprogram the chips.
> urandom
> not just doing zero because faster
>13 37
holy moly those digits
Wow. Why does such a command exist? I mean, what possible good reason would you want to do this?
Becuase SystemD needed to update some bios settings, and they decided to map the BIOS into the local filesystem, and if the files corresponding to the BIOS were removed, to wipe the actual corresponding data.
Damn. So if your comp has the trusty, old dependable BIOS rather than this UEFI shit, the command will have no effect?
apropos
Would this be affected by a rm -r /* --no-preserve-root then?
>when you brick your mobo because of Systemd
T-thanks Lennart
grep, wc, ifconfig, netstat, ls, chmod, chown, chgrp....
"cd -" is useful. It takes you back to the directory you were in previously.
"file" and "strings" are good, especially if you're into any sort of malware analysis/reversing
lsof is also good. If you want to know the PID of a process running on a particular port, you can do: lsof -i:
Use GNU/Linux, and there wouldn't be spam.
"Linux" is a colloquialism that your autistic ass needs to accept, because it's not changing no matter how much you bitch and moan.
Since GNU is called Linux, we can say that Stallman created Linux, right? And Torvalds created the Linux Kernel, which we can call GNU.
Linux is a kernel.
Fair.
Nobody's calling GNU Linux, they're using Linux as a term for operating systems that use the Linux kernel. Also, why does the credit stop at GNU? Why isn't it systemd/Freedesktop.org/GNU/Linux? The arbitrary line needs to be drawn somewhere, and like it or not, it already has been. It's just Linux.
What we say is that you ought to give the system's principal developer a share of the credit. The principal developer is the GNU Project, and the system is basically GNU.
If you feel even more strongly about giving credit where it is due, you might feel that some secondary contributors also deserve credit in the system's name. If so, far be it from us to argue against it. If you feel that X11 deserves credit in the system's name, and you want to call the system GNU/X11/Linux, please do. If you feel that Perl simply cries out for mention, and you want to write GNU/Linux/Perl, go ahead.
Since a long name such as GNU/X11/Apache/Linux/TeX/Perl/Python/FreeCiv becomes absurd, at some point you will have to set a threshold and omit the names of the many other secondary contributions. There is no one obvious right place to set the threshold, so wherever you set it, we won't argue against it.
Different threshold levels would lead to different choices of name for the system. But one name that cannot result from concerns of fairness and giving credit, not for any possible threshold level, is “Linux”. It can't be fair to give all the credit to one secondary contribution (Linux) while omitting the principal contribution (GNU).
>There is no one obvious right place to set the threshold, so wherever you set it, we won't argue against it.
Then stop whining when people choose to set the threshold at just Linux. When I say Linux, I don't mean operating systems with the Linux kernel and GNU coreutils. I mean operating systems that use the Linux kernel.
Such as Android and GNU?
Such as OpenWrt, Alpine, Android, Debian, OpenSUSE
You are referring to Debian GNU/kFreeBSD and Debian GNU/Hurd as Linux?
No, dumbass, I'm referring to the versions that use Linux as Linux.
screenfetch is all you need senpai
>Linux comnands
Doesn't have BSD and macOS the same commands?